wgl 4 anni fa
parent
commit
b55f277326
2 ha cambiato i file con 10 aggiunte e 0 eliminazioni
  1. 5 0
      src/projects/business/main.js
  2. 5 0
      src/projects/pension/main.js

+ 5 - 0
src/projects/business/main.js

@@ -125,6 +125,11 @@ router.beforeEach((to, from, next) => {
 		}
 		}
 	}
 	}
 
 
+	//如果传递过来了token则写入
+	if (to.query.token) {
+		store.commit('SET_TOKEN', to.query.token);
+	}
+
 	//切换当前场景
 	//切换当前场景
 	if (to.query.exchange == '1' && to.query.role_id) {
 	if (to.query.exchange == '1' && to.query.role_id) {
 		API_User.exchangePopedom({
 		API_User.exchangePopedom({

+ 5 - 0
src/projects/pension/main.js

@@ -99,6 +99,11 @@ router.beforeEach((to, from, next) => {
 		}
 		}
 	}
 	}
 
 
+	//如果传递过来了token则写入
+	if (to.query.token) {
+		store.commit('SET_TOKEN', to.query.token);
+	}
+
 	//切换当前场景
 	//切换当前场景
 	if (to.query.exchange == '1' && to.query.role_id) {
 	if (to.query.exchange == '1' && to.query.role_id) {
 		API_User.exchangePopedom({
 		API_User.exchangePopedom({