前端路由异常

vue.runtime.esm.js?2b0e:619 [Vue warn]: Property "visible" must be accessed with "$data.visible" because properties starting with "$" or "_" are not proxied in the Vue instance to prevent conflicts with Vue internalsSee

vue.runtime.esm.js?2b0e:619 [Vue warn]: Property "visible" must be accessed with "$data.visible" because properties starting with "$" or "_" are not proxied in the Vue instance to prevent conflicts with Vue internalsSee: https://vuejs.org/v2/api/#data

(found in )
warn @ vue.runtime.esm.js?2b0e:619
warnReservedPrefix @ vue.runtime.esm.js?2b0e:2026
get @ vue.runtime.esm.js?2b0e:2069
mainvue_type_template_id_455b9f60_render @ element-ui.common.js?5c96:30327
Vue._render @ vue.runtime.esm.js?2b0e:3542
updateComponent @ vue.runtime.esm.js?2b0e:4060
get @ vue.runtime.esm.js?2b0e:4473
Watcher @ vue.runtime.esm.js?2b0e:4462
mountComponent @ vue.runtime.esm.js?2b0e:4067
Vue.$mount @ vue.runtime.esm.js?2b0e:8409
Message @ element-ui.common.js?5c96:30548
main_Message.(anonymous function) @ element-ui.common.js?5c96:30569
_callee$ @ permission.js?223d:63
tryCatch @ regeneratorRuntime.js?c7eb:44
(anonymous) @ regeneratorRuntime.js?c7eb:125
(anonymous) @ regeneratorRuntime.js?c7eb:69
asyncGeneratorStep @ asyncToGenerator.js?1da1:3
_next @ asyncToGenerator.js?1da1:22
Promise.then (async)
asyncGeneratorStep @ asyncToGenerator.js?1da1:12
_throw @ asyncToGenerator.js?1da1:25
Promise.then (async)
asyncGeneratorStep @ asyncToGenerator.js?1da1:12
_next @ asyncToGenerator.js?1da1:22
(anonymous) @ asyncToGenerator.js?1da1:27
(anonymous) @ asyncToGenerator.js?1da1:19
(anonymous) @ permission.js?223d:81
iterator @ vue-router.esm.js?8c4f:1959
step @ vue-router.esm.js?8c4f:1733
step @ vue-router.esm.js?8c4f:1737
runQueue @ vue-router.esm.js?8c4f:1741
confirmTransition @ vue-router.esm.js?8c4f:1988
transitionTo @ vue-router.esm.js?8c4f:1890
push @ vue-router.esm.js?8c4f:2291
push @ vue-router.esm.js?8c4f:2581
(anonymous) @ index.vue?536f:162
Promise.then (async)
(anonymous) @ index.vue?536f:161
(anonymous) @ element-ui.common.js?5c96:22992
(anonymous) @ element-ui.common.js?5c96:23510
complete @ index.js?a15e:89
(anonymous) @ index.js?a15e:225
next @ util.js?fa49:148
next @ util.js?fa49:116
cb @ index.js?a15e:173
validatePassword @ index.vue?536f:118
(anonymous) @ index.js?a15e:216
next @ util.js?fa49:114
asyncSerialArray @ util.js?fa49:120
(anonymous) @ util.js?fa49:154
asyncMap @ util.js?fa49:151
validate @ index.js?a15e:141
validate @ element-ui.common.js?5c96:23506
(anonymous) @ element-ui.common.js?5c96:22986
validate @ element-ui.common.js?5c96:22985
handleLogin @ index.vue?536f:158
click @ index.vue?e641:162
invokeWithErrorHandling @ vue.runtime.esm.js?2b0e:1854
invoker @ vue.runtime.esm.js?2b0e:2179
original._wrapper @ vue.runtime.esm.js?2b0e:6911

如何解决:

因为router.addRoutes的参数为空,需要配置。或者说动态路由中,后台给前台返回的routers为空。

你可能感兴趣的:(前端,vue.js,javascript)