修复ID赋值问题

This commit is contained in:
liaozetao
2023-10-09 21:56:30 +08:00
parent 57b7a77c33
commit 8eef397f5f
2 changed files with 4 additions and 2 deletions

View File

@@ -34,11 +34,11 @@
<a>
<i :class="[parent.icon ? parent.icon : 'fa fa-link']"></i>
<span>{{ parent.name }}</span>
<span class="label pull-right bg-yellow" id='`ic${parent.id}`'>
<span class="label pull-right bg-yellow" :id="['ic' + parent.id]">
{{ getChildLength(parent.id) }}
</span>
</a>
<ul class="treeview-menu" id='`menu${parent.id}`'>
<ul class="treeview-menu" :id="['menu' + parent.id]">
<li v-for="(child, childIndex) in getChilds(parent.id)" :key="child" :data-index="childIndex">
<a :data-url="child.path" @click="handleClick(child)">
<i

View File

@@ -43,6 +43,7 @@
<script>
import store from '@/store';
import router from '@/router';
var sendFlag = true;
export default {
@@ -121,6 +122,7 @@ export default {
//处理css样式污染问题关闭当前窗口重新渲染
window.close();
window.open('#/home', '_blank');
//router.push("/home");
});
} else {
if (data.msg == "4003" || data.msg == "404") {