Bläddra i källkod

子账号类型调整

wangxy 2 månader sedan
förälder
incheckning
7abcbfd5ce
2 ändrade filer med 4 tillägg och 4 borttagningar
  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'
 								})