feat: 登录接口联调

This commit is contained in:
DEV_DSW
2025-12-22 11:24:40 +08:00
parent 72d1869f40
commit c467f54dab
10 changed files with 71 additions and 49 deletions

View File

@@ -32,7 +32,8 @@
</el-form-item>
<el-form-item prop="password">
<div class="text-[14px] text-gray-600">密码</div>
<el-input class="h-[40px]" v-model.trim="form.password" placeholder="请输入密码" clearable autocomplete="off">
<el-input class="h-[40px]" v-model.trim="form.password" type="password" placeholder="请输入密码" clearable
autocomplete="off">
<template #prefix>
<RiKey2Fill size="20px" color="#99A0AE" />
</template>
@@ -75,12 +76,12 @@
</el-form>
<!-- Copy Right -->
<div class="text-[14px] text-gray-500 text-center mt-auto">
<!-- <div class="text-[14px] text-gray-500 text-center mt-auto">
© 2025 贵州智念科技服务有限公司 版权所有
</div>
</div> -->
</div>
<img class="w-[540px]" src="@assets/images/login/logo.png" />
<!-- <img class="w-[540px]" src="@assets/images/login/logo.png" /> -->
</main>
</div>
</template>
@@ -122,8 +123,7 @@ const onSubmit = async () => {
try {
userStore.login(form).then(() => {
// window.location.href = 'index.html'
console.log(form)
window.api.app.loadPage('index');
})
} finally {
getVerifyCode()