|
@@ -73,24 +73,24 @@
|
|
|
uni.getStorage({
|
|
|
key: 'token',
|
|
|
success: async function(res) {
|
|
|
- // 替换底部菜单
|
|
|
- let aee = await that.$api(`/Role/menu`, 'GET', {
|
|
|
- is_use: '0',
|
|
|
- code: res.data.role
|
|
|
- });
|
|
|
- if (aee.errcode == '0') {
|
|
|
- if (aee.data.menu && aee.data.menu.length > 0) {
|
|
|
- for (let val of aee.data.menu) {
|
|
|
- uni.setTabBarItem({
|
|
|
- index: val.index,
|
|
|
- text: val.text,
|
|
|
- pagePath: val.pagePath,
|
|
|
- iconPath: val.iconPath[0].url,
|
|
|
- selectedIconPath: val.selectedIconPath[0].url,
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ // // 替换底部菜单
|
|
|
+ // let aee = await that.$api(`/Role/menu`, 'GET', {
|
|
|
+ // is_use: '0',
|
|
|
+ // code: res.data.role
|
|
|
+ // });
|
|
|
+ // if (aee.errcode == '0') {
|
|
|
+ // if (aee.data.menu && aee.data.menu.length > 0) {
|
|
|
+ // for (let val of aee.data.menu) {
|
|
|
+ // uni.setTabBarItem({
|
|
|
+ // index: val.index,
|
|
|
+ // text: val.text,
|
|
|
+ // pagePath: val.pagePath,
|
|
|
+ // iconPath: val.iconPath[0].url,
|
|
|
+ // selectedIconPath: val.selectedIconPath[0].url,
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
},
|
|
|
fail: function(err) {
|
|
|
uni.showToast({
|