Browse Source

fix: only interrupt getting user info on client side

Acathur 5 years ago
parent
commit
35963ab89e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/common.js

+ 1 - 1
plugins/common.js

@@ -9,7 +9,7 @@ Vue.mixin({
     store,
     req
   }) {
-    if (!Cookies.get('x_access_token')) {
+    if (process.client && !Cookies.get('x_access_token')) {
       return
     }