Pārlūkot izejas kodu

测试环境默认填充账号密码

lifanagju_citu 2 mēneši atpakaļ
vecāks
revīzija
b96447cdec
1 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. 3 2
      layout/components/authModal/login/index.vue

+ 3 - 2
layout/components/authModal/login/index.vue

@@ -106,6 +106,7 @@ import { getSmsCode, getSmsTimer } from '@/utils/code'
 import { userStore } from '@/store/user'
 import { closeAuthModal } from '@/hooks/useModal'
 import { getEnterpriseRegisterApply } from '@/api/enterprise'
+import { testEnvBool } from '@/utils/config'
 
 const useUserStore = userStore()
 const accountLoginRef = ref()
@@ -123,8 +124,8 @@ const state = ref({
     code: ''
   },
   account: {
-    phone: '1687284007@qq.com', // 1687284007 18406571584 
-    password: 'Citu123456'
+    phone: testEnvBool ? '1687284007@qq.com' : '', // 1687284007 18406571584 
+    password: testEnvBool ? 'Citu123456' : '',
   },
   rules: {
     phone: emailRequired,