refactor: 多租户适配调整
This commit is contained in:
@@ -98,7 +98,7 @@
|
||||
import type { FormInstance } from "element-plus";
|
||||
import { Lock } from "@element-plus/icons-vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
import AuthAPI, { type LoginFormData } from "@/api/auth-api";
|
||||
import AuthAPI, { type LoginRequest } from "@/api/auth-api";
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
@@ -113,7 +113,7 @@ const isCapsLock = ref(false); // 是否大写锁定
|
||||
const captchaBase64 = ref(); // 验证码图片Base64字符串
|
||||
const isRead = ref(false);
|
||||
|
||||
interface Model extends LoginFormData {
|
||||
interface Model extends LoginRequest {
|
||||
confirmPassword: string;
|
||||
}
|
||||
|
||||
@@ -121,7 +121,7 @@ const model = ref<Model>({
|
||||
username: "admin",
|
||||
password: "123456",
|
||||
confirmPassword: "",
|
||||
captchaKey: "",
|
||||
captchaId: "",
|
||||
captchaCode: "",
|
||||
rememberMe: false,
|
||||
});
|
||||
@@ -182,7 +182,7 @@ function getCaptcha() {
|
||||
codeLoading.value = true;
|
||||
AuthAPI.getCaptcha()
|
||||
.then((data) => {
|
||||
model.value.captchaKey = data.captchaKey;
|
||||
model.value.captchaId = data.captchaId;
|
||||
captchaBase64.value = data.captchaBase64;
|
||||
})
|
||||
.finally(() => (codeLoading.value = false));
|
||||
|
||||
Reference in New Issue
Block a user