Selaa lähdekoodia

前端拦截没有权限的访问路径 自动退回到首页

彭宇 1 vuosi sitten
vanhempi
commit
56ab412c9d
1 muutettua tiedostoa jossa 0 lisäystä ja 1 poistoa
  1. 0 1
      src/store/modules/user.js

+ 0 - 1
src/store/modules/user.js

@@ -65,7 +65,6 @@ const user = {
           if (!bo.flag) {
             location.href = bo.url;
           }
-
           const user = res.user
           const avatar = user.avatar == "" ? require("@/assets/images/profile.jpg") : user.avatar;
           if (res.roles && res.roles.length > 0) { // 验证返回的roles是否是一个非空数组