-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
import(@/views/${sub_view}
)模板语法识别不了怎么办
#3326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Uncaught Error: Module build failed (from ./node_modules/eslint-loader/index.js): |
用的是最新的4.4.0 |
import { constantRoutes } from '@/router' function filterAsyncRoutes(routers) { const state = { const mutations = { export default { |
这两种方法也不行吗? |
同遇到此问题,一直卡在这 |
|
附一个我完成的PHP的动态方案,主要代码
首先PHP要返回用户可访问的路由,期望的结果是菜单中可以有一个指向
/example/sample
的菜单和路由。然后修改
src/store/modules/permission.js
添加一个方法
然后修改这个文件中的 actions
然后新增一个
user/getMenus
的 Vuex 的 action还有一个文件是
src/permission.js
要在
store.dispatch('permission/generateRoutes')
代码附近要改一下,原先从本地配置+roles获得用户路由,现在改从服务端获得之后再addRoutes
亲测可行……
Originally posted by @amoydavid in #293 (comment)
The text was updated successfully, but these errors were encountered: