瀏覽代碼

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

lifanagju_citu 2 月之前
父節點
當前提交
b96447cdec
共有 1 個文件被更改,包括 3 次插入2 次删除
  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 { userStore } from '@/store/user'
 import { closeAuthModal } from '@/hooks/useModal'
 import { closeAuthModal } from '@/hooks/useModal'
 import { getEnterpriseRegisterApply } from '@/api/enterprise'
 import { getEnterpriseRegisterApply } from '@/api/enterprise'
+import { testEnvBool } from '@/utils/config'
 
 
 const useUserStore = userStore()
 const useUserStore = userStore()
 const accountLoginRef = ref()
 const accountLoginRef = ref()
@@ -123,8 +124,8 @@ const state = ref({
     code: ''
     code: ''
   },
   },
   account: {
   account: {
-    phone: '1687284007@qq.com', // 1687284007 18406571584 
-    password: 'Citu123456'
+    phone: testEnvBool ? '1687284007@qq.com' : '', // 1687284007 18406571584 
+    password: testEnvBool ? 'Citu123456' : '',
   },
   },
   rules: {
   rules: {
     phone: emailRequired,
     phone: emailRequired,