zs 1 year ago
parent
commit
b7ba32e33d

+ 18 - 18
pages/home/index.vue

@@ -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({

File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/home/index.js.map


File diff suppressed because it is too large
+ 0 - 33
unpackage/dist/dev/mp-weixin/pages/home/index.js