This commit is contained in:
2024-03-25 18:04:52 +08:00
parent 5d911a5e02
commit 9a0d8954c3
2 changed files with 10 additions and 6 deletions

View File

@@ -48,7 +48,7 @@
export default {
data() {
return {
userName: 'admin',
userName: '',
menuList: [],
menuList1: [],
menuList2: [],
@@ -68,8 +68,8 @@
async _authority () {
let res = await authority()
if (res.code === '1') {
this.menuList1 = [...res.result.rf_menu0]
this.menuList2 = [...res.result.rf_menu1]
this.menuList1 = [...res.result.rf_menu0.sonTree]
this.menuList2 = [...res.result.rf_menu1.sonTree]
this.menuList = [...this.menuList1]
} else {
uni.showToast({