Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -6,7 +6,7 @@ import routes from "../mock/routes" | ... | @@ -6,7 +6,7 @@ import routes from "../mock/routes" |
| 6 | 6 | ||
| 7 | // 根据后台返回的路径,生成页面的组件模版 | 7 | // 根据后台返回的路径,生成页面的组件模版 |
| 8 | function loadView(component) { | 8 | function loadView(component) { |
| 9 | - return () => import(`/@/views/${component}.vue`) | 9 | + return () => import(`../views/${component}.vue`) |
| 10 | } | 10 | } |
| 11 | 11 | ||
| 12 | const formatRoutesArr = [] | 12 | const formatRoutesArr = [] | ... | ... |
-
Please register or login to post a comment