소스 검색

设置默认账号密码便于开发快捷登录

lifanagju_citu 8 달 전
부모
커밋
32f9af8e3f
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      layout/components/authModal/login/index.vue

+ 7 - 0
layout/components/authModal/login/index.vue

@@ -169,6 +169,13 @@ const state = ref({
   }
 })
 
+
+// 设置默认账号密码便于开发快捷登录
+if (window.location.hostname === 'localhost' || window.location.hostname === '192.168.3.152') {
+  state.value.account.phone = '13229740092'
+  state.value.account.password = 'Citu123456'
+}
+
 const changeType = ref('login')
 
 // 登录成功后的返回页面