Browse Source

去除路由跳转未登录提示

xinfeng 6 years ago
parent
commit
098f7968fb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/common.js

+ 1 - 1
plugins/common.js

@@ -10,7 +10,7 @@ Vue.mixin({
     let headers = req && req.headers
     let res = await $axios.$get('/api/user/getInfo', {
       headers
-    });
+    }, {neverLogout: true});
     if (res && res.data) {
       store.commit('updateUserinfo', {
         userinfo: res.data || {}