Browse Source

代码优化

tanxue 2 months ago
parent
commit
b7c812280a

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

@@ -109,6 +109,7 @@
 			userName: trimmedUserName,
 			userName: trimmedUserName,
 			password: lliPassword.value,
 			password: lliPassword.value,
 		}).then(res => {
 		}).then(res => {
+			// 2为家政管理员
 			if(res.data.type ===2){
 			if(res.data.type ===2){
 				cacheManager.set('auth', res.data)
 				cacheManager.set('auth', res.data)
 				store.setIsCanBack(false)
 				store.setIsCanBack(false)

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

@@ -109,6 +109,7 @@
 			userName: trimmedUserName,
 			userName: trimmedUserName,
 			password: lliPassword.value,
 			password: lliPassword.value,
 		}).then(res => {
 		}).then(res => {
+			// 4为家政人员
 			if(res.data.type ===4){
 			if(res.data.type ===4){
 				cacheManager.set('auth', res.data)
 				cacheManager.set('auth', res.data)
 				store.setIsCanBack(false)
 				store.setIsCanBack(false)