Explorar el Código

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

lifanagju_citu hace 8 meses
padre
commit
32f9af8e3f
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  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')
 
 // 登录成功后的返回页面