소스 검색

代码优化

tanxue 2 달 전
부모
커밋
b7c812280a
2개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      pages/Login/components/adminloginBox.vue
  2. 1 0
      pages/Login/components/clientloginBox.vue

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

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

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

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