瀏覽代碼

子账号类型调整

wangxy 2 月之前
父節點
當前提交
7abcbfd5ce
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 2 2
      App.vue
  2. 2 2
      utils/request.js

+ 2 - 2
App.vue

@@ -30,7 +30,7 @@
 			// #endif
 			// #ifdef H5
 			if (cacheManager.get('auth')) {
-				if (cacheManager.get('auth').type == 2) {
+				if (cacheManager.get('auth').type == 2 || cacheManager.get('auth').type == 5) {
 					uni.reLaunch({
 						url: `/pages/admin/ShouYe/shouye`,
 						success() {
@@ -65,7 +65,7 @@
 			// #endif
 			// #ifdef H5
 			if (cacheManager.get('auth')) {
-				if (cacheManager.get('auth').type === 2) {
+				if (cacheManager.get('auth').type === 2 || cacheManager.get('auth').type == 5) {
 					uni.reLaunch({
 						url: `/pages/admin/ShouYe/shouye`,
 						success() {

+ 2 - 2
utils/request.js

@@ -57,7 +57,7 @@ const request = config => {
 							if (auth) {
 								cacheManager.clearAll()
 							}
-							if (auth.type == 2) {
+							if (auth.type == 2 || auth.type == 5) {
 								uni.reLaunch({
 									url: '/pages/Login/index'
 								})
@@ -77,7 +77,7 @@ const request = config => {
 							if (auth) {
 								cacheManager.clearAll()
 							}
-							if (auth.type == 2) {
+							if (auth.type == 2 || auth.type == 5) {
 								uni.reLaunch({
 									url: '/pages/Login/index'
 								})