Property visible must be accessed with $ or _ are not proxied in the Vue instance to prevent错误

r囧r小猫 2023-02-20 03:05 100阅读 0赞

如果出现上面的错误,解决办法

在 src/permission.js 下面调整为下面代码

  1. catch (error) {
  2. // remove token and go to login page to re-login
  3. await store.dispatch('user/resetToken')
  4. Message.error(error.message || 'Has Error')
  5. next(`/login?redirect=${ to.path}`)
  6. NProgress.done()
  7. }

发表评论

表情:
评论列表 (有 0 条评论,100人围观)

还没有评论,来说两句吧...

相关阅读