Merge branch 'master' of https://github.com/umbrella22/electron-vue-template
正在显示
2 个修改的文件
包含
4 行增加
和
3 行删除
| ... | @@ -71,7 +71,7 @@ | ... | @@ -71,7 +71,7 @@ |
| 71 | </template> | 71 | </template> |
| 72 | 72 | ||
| 73 | <script> | 73 | <script> |
| 74 | -import path from "path"; | 74 | +// import path from "path"; |
| 75 | 75 | ||
| 76 | export default { | 76 | export default { |
| 77 | name: "SidebarItem", | 77 | name: "SidebarItem", |
| ... | @@ -111,7 +111,8 @@ export default { | ... | @@ -111,7 +111,8 @@ export default { |
| 111 | return false; | 111 | return false; |
| 112 | }, | 112 | }, |
| 113 | resolvePath(...paths) { | 113 | resolvePath(...paths) { |
| 114 | - return path.resolve(this.basePath, ...paths); | 114 | + return this.basePath + "/" +paths[0] |
| 115 | + // return path.resolve(this.basePath, ...paths); | ||
| 115 | }, | 116 | }, |
| 116 | OneShowingChild(children) { | 117 | OneShowingChild(children) { |
| 117 | this.onlyOneChild = children; | 118 | this.onlyOneChild = children; | ... | ... |
| ... | @@ -27,7 +27,7 @@ const Notfound = () => import('@/views/404') | ... | @@ -27,7 +27,7 @@ const Notfound = () => import('@/views/404') |
| 27 | **/ | 27 | **/ |
| 28 | export default [ | 28 | export default [ |
| 29 | { path: '/login', component: Login, hidden: true }, | 29 | { path: '/login', component: Login, hidden: true }, |
| 30 | - { path: '/404', component: Notfound, hidden: true }, | 30 | + { path: '*', component: Notfound, hidden: true }, |
| 31 | { | 31 | { |
| 32 | path: '/', | 32 | path: '/', |
| 33 | component: Layout, | 33 | component: Layout, | ... | ... |
-
请 注册 或 登录 后发表评论