From 2b1f59acec649e498cbc1791a870e7de0f5f9c68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BF=9E=E5=AE=9D=E5=B1=B1?= <1253070437@qq.com> Date: Fri, 20 Dec 2024 21:04:01 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E9=80=9A=E7=94=A8=E3=80=91=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E7=95=8C=E9=9D=A2=E5=AE=B9=E6=98=93=E5=BF=98=E8=AE=B0?= =?UTF-8?q?=E7=94=9F=E4=BA=A7=E6=89=93=E5=8C=85=E5=8E=BB=E6=8E=89=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E7=94=A8=E6=88=B7=E5=90=8D=EF=BC=8C=E6=89=80=E4=BB=A5?= =?UTF-8?q?=E5=8A=A0=E6=AD=A4=E9=85=8D=E7=BD=AE=E6=9D=A5=E5=AE=B9=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- snowy-admin-web/src/views/auth/login/login.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/snowy-admin-web/src/views/auth/login/login.vue b/snowy-admin-web/src/views/auth/login/login.vue index 89fc3804..d8687c04 100644 --- a/snowy-admin-web/src/views/auth/login/login.vue +++ b/snowy-admin-web/src/views/auth/login/login.vue @@ -128,12 +128,15 @@ const loading = ref(false) const ruleForm = reactive({ - account: 'superAdmin', - password: '123456', validCode: '', validCodeReqNo: '', autologin: false }) + // 如果是开发环境,填充用户名密码 + if (process.env.NODE_ENV === 'development') { + ruleForm.account = 'superAdmin' + ruleForm.password = '123456' + } const rules = reactive({ account: [required(proxy.$t('login.accountError'), 'blur')],