张恒
...@@ -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,
......