Browse Source

오류 수정

yongun 5 years ago
parent
commit
7d404bcfd3
2 changed files with 2 additions and 2 deletions
  1. 1 1
      middleware/auth.js
  2. 1 1
      store/index.js

+ 1 - 1
middleware/auth.js

@@ -1,4 +1,4 @@
-export default function ({ store }, redirect) {
+export default function ({ store, redirect }) {
   if (store.getters.isAuthenticated) {
     return redirect('/')
   }

+ 1 - 1
store/index.js

@@ -6,7 +6,7 @@ const createStore = () => {
       headlines: [],
       loading: false,
       category: '',
-      token: '',
+      token: null,
       country: 'us'
     },
     mutations: {