mirror of
https://gitee.com/dromara/electron-egg.git
synced 2026-05-14 19:52:10 +08:00
1
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
NODE_ENV=production
|
||||
VUE_APP_PREVIEW=true
|
||||
VUE_APP_API_BASE_URL=http://localhost:7068
|
||||
@@ -14,10 +14,15 @@ export const constantRouterMap = [
|
||||
component: AppSider,
|
||||
children: [
|
||||
{
|
||||
path: '/',
|
||||
name: 'Demo',
|
||||
path: '/base',
|
||||
name: 'Base',
|
||||
component: Menu,
|
||||
children: [
|
||||
{
|
||||
path: '/base/index',
|
||||
name: 'BaseIndex',
|
||||
component: () => import('@/views/base/file/Index')
|
||||
},
|
||||
{
|
||||
path: '/base/file/index',
|
||||
name: 'BaseFileIndex',
|
||||
|
||||
@@ -32,7 +32,7 @@ export default {
|
||||
'menu_1' : {
|
||||
icon: 'home',
|
||||
title: '功能',
|
||||
pageName: 'DemoFileIndex',
|
||||
pageName: 'BaseIndex',
|
||||
params: {},
|
||||
},
|
||||
'menu_2' : {
|
||||
@@ -51,6 +51,7 @@ export default {
|
||||
methods: {
|
||||
menuHandle (item) {
|
||||
const linkInfo = this.menu[item.key]
|
||||
console.log('[home] load page:', linkInfo.pageName);
|
||||
this.$router.push({ name: linkInfo.pageName, params: linkInfo.params})
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user