完善采购订单、登录、菜单、角色功能
This commit is contained in:
@@ -47,15 +47,34 @@
|
||||
// return this.$router.options.routes
|
||||
// },
|
||||
activeMenu() {
|
||||
// console.log('aaaaaaaaaaa', this.$route)
|
||||
// console.log("val>>>>>>>>>>>>>>>>.", this.$route.query.index); // 页面获取
|
||||
// this.$route.query.index = [{
|
||||
// sid: '11',
|
||||
// name: "ssss"
|
||||
// }, {
|
||||
// sid: '22',
|
||||
// name: "aaa"
|
||||
// }, {
|
||||
// sid: '33',
|
||||
// name: "bbb"
|
||||
// }]
|
||||
const route = this.$route
|
||||
const {
|
||||
meta,
|
||||
path
|
||||
path,
|
||||
// query,
|
||||
} = route
|
||||
|
||||
// this.$route.query = {
|
||||
// index: '1'
|
||||
// }
|
||||
|
||||
// if set path, the sidebar will highlight the path you set
|
||||
if (meta.activeMenu) {
|
||||
return meta.activeMenu
|
||||
}
|
||||
// console.log('bbbbbbb', path)
|
||||
return path
|
||||
},
|
||||
showLogo() {
|
||||
|
||||
Reference in New Issue
Block a user