feat: 冗余代码

This commit is contained in:
chenli
2026-02-02 09:47:05 +08:00
parent 9ce4ed0c01
commit a3dbdaba6f
2 changed files with 2 additions and 2 deletions

View File

@@ -426,7 +426,7 @@
//更多按钮 //更多按钮
openPage(path, type) { openPage(path, type) {
if (type === 'approve') { if (type === 'approve') {
let workFlowList = this.menuList.filter(o => o.enCode === 'workFlow') let workFlowList =this.menuList && this.menuList.filter(o => o.enCode === 'workFlow')
console.log(this.menuList,'menuList---------') console.log(this.menuList,'menuList---------')
if (!workFlowList[0]?.children?.length) return this.$u.toast('暂无权限') if (!workFlowList[0]?.children?.length) return this.$u.toast('暂无权限')
} }

View File

@@ -191,7 +191,7 @@ export default {
// if (this.sysConfigInfo[config.key] === 1) return this.tabsList.unshift(config.tab); // if (this.sysConfigInfo[config.key] === 1) return this.tabsList.unshift(config.tab);
// }); // });
this.menuList = uni.getStorageSync("menuList"); this.menuList = uni.getStorageSync("menuList");
let workFlowList = this.menuList.filter(o => o.enCode === 'workFlow') let workFlowList = this.menuList && this.menuList.filter(o => o.enCode === 'workFlow')
if (!workFlowList.length) return if (!workFlowList.length) return
let menuData = workFlowList[0]?.children let menuData = workFlowList[0]?.children
this.tabsList = this.tabsList.filter(tab => this.tabsList = this.tabsList.filter(tab =>