This commit is contained in:
shijing 2023-02-03 15:33:35 +08:00
parent 0d533ea8fb
commit 7d7b8aa76f
2 changed files with 20 additions and 24 deletions

View File

@ -48,6 +48,18 @@ const routes = [
}, },
"component": "home" "component": "home"
}, },
// {
// "path": "/bigScreen",
// "name": "bigScreen",
// "meta": {
// "title": "驾驶舱",
// "icon": "el-icon-position",
// "perms": ["bigScreen"],
// "fullpage": true,
// },
// "component": "bigScreen"
// },
{ {
"path": "/bigScreen", "path": "/bigScreen",
"name": "bigScreen", "name": "bigScreen",
@ -55,6 +67,7 @@ const routes = [
"title": "驾驶舱", "title": "驾驶舱",
"icon": "el-icon-position", "icon": "el-icon-position",
"perms": ["bigScreen"], "perms": ["bigScreen"],
"type": "link",
"fullpage": true, "fullpage": true,
}, },
"component": "bigScreen" "component": "bigScreen"
@ -71,19 +84,6 @@ const routes = [
// }, // },
// "component": "bigScreen" // "component": "bigScreen"
// }, // },
// {
// "path": "/bigScreen",
// "name": "bigScreen",
// "meta": {
// "title": "驾驶舱",
// "icon": "el-icon-position",
// "perms": ["bigScreen"],
// "type": "link",
// "fullpage": true,
// },
// },
{ {
"name": "userCenter", "name": "userCenter",
"path": "/usercenter", "path": "/usercenter",

View File

@ -21,7 +21,6 @@
</template> </template>
<script> <script>
export default { export default {
name: 'NavMenu', name: 'NavMenu',
props: ['navMenus'], props: ['navMenus'],
@ -37,15 +36,12 @@
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)
debugger;
let routeUrl = this.$router.resolve({path: path}); let routeUrl = this.$router.resolve({path: path});
console.log(routeUrl.href)
window.open(routeUrl.href, '_blank'); debugger;
// window.open(linkUrl,'_blank'); window.open(routeUrl.href);
}, },
} }
} }