mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-30 06:20:50 +00:00
improve: 字段判断
This commit is contained in:
parent
aab2d2a2a8
commit
aa5083191d
@ -130,7 +130,6 @@ export default {
|
||||
},
|
||||
// 传送当前子级数据到菜单中
|
||||
setSendChildren(path) {
|
||||
const currentPathSplit = path.split('/');
|
||||
let currentData = {};
|
||||
this.columnsAsideList.map((v, k) => {
|
||||
if (v.path === path) {
|
||||
@ -188,7 +187,7 @@ export default {
|
||||
let asideList = getMenuSider(this.columnsAsideList, HeadName)[0]?.children;
|
||||
const resData = this.setSendChildren(HeadName);
|
||||
if (resData.length <= 0) return false;
|
||||
this.onColumnsAsideDown(resData.item[0].k);
|
||||
if (resData.item) this.onColumnsAsideDown(resData.item[0].k);
|
||||
this.bus.$emit('oneCatName', resData.item[0].title);
|
||||
this.bus.$emit('setSendColumnsChildren', asideList || []);
|
||||
this.$store.commit('menus/childMenuList', asideList || []);
|
||||
|
||||
@ -87,8 +87,9 @@ export default {
|
||||
if (type === 'push')
|
||||
if (i < 1) state.tagNavList.push(router);
|
||||
else {
|
||||
if (router.name === homeName) state.tagNavList.unshift(router);
|
||||
else state.tagNavList.splice(1, 0, router);
|
||||
return;
|
||||
// if (router.name === homeName) state.tagNavList.unshift(router);
|
||||
// else state.tagNavList.splice(1, 0, router);
|
||||
}
|
||||
setTagNavListInLocalstorage([...state.tagNavList]);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user