0203
This commit is contained in:
parent
facd1c081c
commit
e28f557d45
|
@ -66,6 +66,7 @@
|
||||||
"vue/multi-word-component-names": 0,
|
"vue/multi-word-component-names": 0,
|
||||||
"no-debugger": "off",
|
"no-debugger": "off",
|
||||||
"no-console": "off",
|
"no-console": "off",
|
||||||
|
"drop_debugger":true,
|
||||||
"no-trailing-spaces": "off"
|
"no-trailing-spaces": "off"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -27,6 +27,18 @@
|
||||||
// ]
|
// ]
|
||||||
|
|
||||||
const routes = [
|
const routes = [
|
||||||
|
{
|
||||||
|
"path": "/bigScreen",
|
||||||
|
"name": "bigScreen",
|
||||||
|
"meta": {
|
||||||
|
"title": "驾驶舱",
|
||||||
|
"icon": "el-icon-position",
|
||||||
|
"perms": ["bigScreen"],
|
||||||
|
"fullpage": true,
|
||||||
|
"type": "link",
|
||||||
|
},
|
||||||
|
"component": "bigScreen"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "home",
|
"name": "home",
|
||||||
"path": "/home",
|
"path": "/home",
|
||||||
|
@ -50,12 +62,13 @@ const routes = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "/bigScreen",
|
"path": "/bigScreen",
|
||||||
"name": "bigScreens",
|
"name": "bigScreen",
|
||||||
"meta": {
|
"meta": {
|
||||||
"title": "bigScreens",
|
"title": "驾驶舱",
|
||||||
"icon": "el-icon-position",
|
"icon": "el-icon-position",
|
||||||
"perms": ["bigScreen"],
|
"perms": ["bigScreen"],
|
||||||
"fullpage": true,
|
"fullpage": true,
|
||||||
|
"type": "link",
|
||||||
},
|
},
|
||||||
"component": "bigScreen"
|
"component": "bigScreen"
|
||||||
},
|
},
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
<el-sub-menu v-else :index="navMenu.path">
|
<el-sub-menu v-else :index="navMenu.path">
|
||||||
<template #title>
|
<template #title>
|
||||||
|
<a v-if="navMenu.meta.type=='link'" href="javascript:void(0)" @click="blankPageClick(navMenu.path)"></a>
|
||||||
<el-icon v-if="navMenu.meta&&navMenu.meta.icon"><component :is="navMenu.meta.icon || 'el-icon-menu'"/></el-icon>
|
<el-icon v-if="navMenu.meta&&navMenu.meta.icon"><component :is="navMenu.meta.icon || 'el-icon-menu'"/></el-icon>
|
||||||
<span>{{navMenu.meta.title}}</span>
|
<span>{{navMenu.meta.title}}</span>
|
||||||
</template>
|
</template>
|
||||||
|
@ -30,14 +31,16 @@
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
hasChildren(item) {
|
hasChildren(item) {
|
||||||
|
console.log(item)
|
||||||
|
console.log(item.children && !item.children.every(item => item.meta.hidden))
|
||||||
return item.children && !item.children.every(item => item.meta.hidden)
|
return item.children && !item.children.every(item => item.meta.hidden)
|
||||||
},
|
},
|
||||||
blankPageClick(path){
|
blankPageClick(path){
|
||||||
console.log(window.location);
|
// console.log(window.location);
|
||||||
console.log(path);
|
// console.log(path);
|
||||||
let linkUrl = window.location.origin+"/#"+path;
|
// let linkUrl = window.location.origin+"/#"+path;
|
||||||
console.log(linkUrl)
|
// console.log(linkUrl)
|
||||||
debugger;
|
// debugger;
|
||||||
|
|
||||||
|
|
||||||
let routeUrl = this.$router.resolve({path: path});
|
let routeUrl = this.$router.resolve({path: path});
|
||||||
|
|
Loading…
Reference in New Issue