wangguoyu 2 days ago
parent
commit
805104da3f

+ 1 - 3
pages/Login/components/adminloginBox.vue

@@ -148,9 +148,7 @@
 		}).then(res => {
 			// 2为家政管理员
 			if(res.data.type ===2 ||res.data.type ===5){
-				if (cacheManager.get('auth')) {
-					cacheManager.clearAll()
-				}
+			
 				cacheManager.set('auth', res.data)
 				store.setIsCanBack(false)
 				// 页面跳转

+ 1 - 3
pages/Login/components/clientloginBox.vue

@@ -125,9 +125,7 @@
 			// 4为家政人员
 			if (res.data.type === 4) {
 
-				if (cacheManager.get('auth')) {
-					cacheManager.clearAll()
-				}
+		
 
 				cacheManager.set('auth', res.data)
 				store.setIsCanBack(false)