0203
This commit is contained in:
parent
8fc3563a45
commit
facd1c081c
|
@ -25,8 +25,6 @@
|
||||||
// }]
|
// }]
|
||||||
// }
|
// }
|
||||||
// ]
|
// ]
|
||||||
// import sysConfig from "@/config";
|
|
||||||
// const linkUrl = sysConfig.API_URL.slice(0,--3)+"#/bigScreen";
|
|
||||||
|
|
||||||
const routes = [
|
const routes = [
|
||||||
{
|
{
|
||||||
|
@ -50,7 +48,7 @@ const routes = [
|
||||||
},
|
},
|
||||||
"component": "home"
|
"component": "home"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "/bigScreen",
|
"path": "/bigScreen",
|
||||||
"name": "bigScreens",
|
"name": "bigScreens",
|
||||||
"meta": {
|
"meta": {
|
||||||
|
@ -58,22 +56,33 @@ const routes = [
|
||||||
"icon": "el-icon-position",
|
"icon": "el-icon-position",
|
||||||
"perms": ["bigScreen"],
|
"perms": ["bigScreen"],
|
||||||
"fullpage": true,
|
"fullpage": true,
|
||||||
"hidden":true,
|
|
||||||
},
|
},
|
||||||
"component": "bigScreen"
|
"component": "bigScreen"
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
"path": "/bigScreen",
|
// "path": "/bigScreen",
|
||||||
"name": "bigScreen",
|
// "name": "bigScreens",
|
||||||
"meta": {
|
// "meta": {
|
||||||
"title": "驾驶舱",
|
// "title": "bigScreens",
|
||||||
"icon": "el-icon-position",
|
// "icon": "el-icon-position",
|
||||||
"perms": ["bigScreen"],
|
// "perms": ["bigScreen"],
|
||||||
"type": "link",
|
// "fullpage": true,
|
||||||
"fullpage": true,
|
// "hidden":true,
|
||||||
|
// },
|
||||||
|
// "component": "bigScreen"
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// "path": "/bigScreen",
|
||||||
|
// "name": "bigScreen",
|
||||||
|
// "meta": {
|
||||||
|
// "title": "驾驶舱",
|
||||||
|
// "icon": "el-icon-position",
|
||||||
|
// "perms": ["bigScreen"],
|
||||||
|
// "type": "link",
|
||||||
|
// "fullpage": true,
|
||||||
|
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
|
|
||||||
{
|
{
|
||||||
"name": "userCenter",
|
"name": "userCenter",
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
</div>
|
</div>
|
||||||
<template v-for="navMenu in navMenus" v-bind:key="navMenu">
|
<template v-for="navMenu in navMenus" v-bind:key="navMenu">
|
||||||
<el-menu-item v-if="!hasChildren(navMenu)" :index="navMenu.path">
|
<el-menu-item v-if="!hasChildren(navMenu)" :index="navMenu.path">
|
||||||
<a v-if="navMenu.meta&&navMenu.meta.type=='link'" target="_blank" @click="blankPageClick(navMenu.path)"></a>
|
<a v-if="navMenu.meta&&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>
|
||||||
<template #title>
|
<template #title>
|
||||||
<span>{{navMenu.meta.title}}</span>
|
<span>{{navMenu.meta.title}}</span>
|
||||||
|
@ -21,7 +21,6 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import sysConfig from "@/config";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'NavMenu',
|
name: 'NavMenu',
|
||||||
|
@ -36,9 +35,15 @@ import sysConfig from "@/config";
|
||||||
blankPageClick(path){
|
blankPageClick(path){
|
||||||
console.log(window.location);
|
console.log(window.location);
|
||||||
console.log(path);
|
console.log(path);
|
||||||
debugger;
|
|
||||||
let linkUrl = window.location.origin+"/#"+path;
|
let linkUrl = window.location.origin+"/#"+path;
|
||||||
window.open(linkUrl);
|
console.log(linkUrl)
|
||||||
|
debugger;
|
||||||
|
|
||||||
|
|
||||||
|
let routeUrl = this.$router.resolve({path: path});
|
||||||
|
|
||||||
|
window.open(routeUrl.href, '_blank');
|
||||||
|
// window.open(linkUrl,'_blank');
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue