态势感知平台-账号密码登录及验证码接口对接治理平台登录接口

This commit is contained in:
fmk1023
2026-01-05 09:58:49 +08:00
parent 4d9c8ed52c
commit 907a26cc94
4 changed files with 29 additions and 6 deletions

View File

@@ -146,6 +146,8 @@ import {
import { useRouter } from "vue-router";
// 引入页面2风格的接口逻辑
import { getCaptcha, login } from "@/api/jyh/auth";
import getRsaCode from '@/utils/jsencrypt';
import { useAccountStore } from '@/stores/user';
const props = withDefaults(defineProps<{
modelValue: boolean;
@@ -252,12 +254,12 @@ const handleLogin = async () => {
return;
}
Message.error(res.data.msg);
formModel.code = '';
loginForm.code = '';
getCaptchaUrl();
})
.catch((err) => {
console.log(err);
formModel.code = '';
loginForm.code = '';
getCaptchaUrl();
});