diff --git a/back/src/mixins/view-module.js b/back/src/mixins/view-module.js
index 98b075fb..edd9378c 100644
--- a/back/src/mixins/view-module.js
+++ b/back/src/mixins/view-module.js
@@ -107,7 +107,6 @@ export default {
} else {
this.total = this.mixinViewModuleOptions.getDataListIsPage ? res.data.total : 0
}
-
console.log('数据列表', this.dataList, this.mixinViewModuleOptions.getDataListURL)
if (this.dataList[0].type === '组件服务') {
this.dataList.map(val => {
diff --git a/back/src/router/index.js b/back/src/router/index.js
index c386dc1b..08f69ea5 100644
--- a/back/src/router/index.js
+++ b/back/src/router/index.js
@@ -104,7 +104,7 @@ router.beforeEach((to, from, next) => {
Vue.prototype.$message.error(res.msg)
return next({ name: 'login' })
}
- window.SITE_CONFIG.menuList = res.data
+ window.SITE_CONFIG.menuList = res.data.filter(item => item.site === 0)
fnAddDynamicMenuRoutes(window.SITE_CONFIG.menuList)
next({ ...to, replace: true })
}).catch(() => {
diff --git a/back/src/views/main-sidebar.vue b/back/src/views/main-sidebar.vue
index 40f882b0..66f28d04 100644
--- a/back/src/views/main-sidebar.vue
+++ b/back/src/views/main-sidebar.vue
@@ -1,8 +1,8 @@
@@ -25,7 +25,7 @@
:menu="menu"
>
sdddd
-
+
@@ -35,63 +35,64 @@
\ No newline at end of file
+
diff --git a/back/src/views/modules/sys/menu-add-or-update.vue b/back/src/views/modules/sys/menu-add-or-update.vue
index ed7ddd49..318254cb 100644
--- a/back/src/views/modules/sys/menu-add-or-update.vue
+++ b/back/src/views/modules/sys/menu-add-or-update.vue
@@ -123,11 +123,12 @@ export default {
},
// 获取菜单列表
getMenuList () {
+ console.log('获取菜单位置2')
return this.$http.get('/sys/menu/list?type=0').then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
- this.menuList = res.data
+ this.menuList = res.data.filter(item => item.site === 0)
}).catch(() => {})
},
// 获取信息
diff --git a/back/src/views/modules/sys/menu.vue b/back/src/views/modules/sys/menu.vue
index 4fe46da1..bbc70ae3 100644
--- a/back/src/views/modules/sys/menu.vue
+++ b/back/src/views/modules/sys/menu.vue
@@ -1,3 +1,10 @@
+