前端路由异常

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 <Root>)
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为空。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

东芃9394

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值