Browse Source

获取token

panhui 3 years ago
parent
commit
badf885c07
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/main.js

+ 5 - 0
src/main.js

@@ -125,6 +125,11 @@ if (location.pathname === '/hall') {
         store.commit('setShowRoomId', query.id);
     }
 }
+if (query.token) {
+    console.log(query.token);
+    localStorage.setItem('nineToken', query.token);
+    store.dispatch('getUserInfo');
+}
 if (query.invitor) {
     store.commit('setInvitor', query.invitor);