接口请求地址以及接口返回提示修改

This commit is contained in:
2026-08-18 14:33:59 +08:00
parent bbbdb85f6e
commit d91f7928dd
10 changed files with 24 additions and 99 deletions
+1 -6
View File
@@ -8,7 +8,7 @@ defineOptions({
});
const authStore = useAuthStore();
const { formRef, validate } = useNaiveForm();
const { validate } = useNaiveForm();
interface FormModel {
userName: string;
@@ -21,9 +21,7 @@ const model: FormModel = reactive({
});
const rules = computed<Record<keyof FormModel, App.Global.FormRule[]>>(() => {
// inside computed to make locale reactive, if not apply i18n, you can define it without computed
const { formRules } = useFormRules();
return {
userName: formRules.userName,
password: formRules.pwd
@@ -51,9 +49,6 @@ async function handleSubmit() {
/>
</NFormItem>
<NSpace vertical :size="24">
<div class="flex-y-center justify-between">
<NCheckbox>记住我</NCheckbox>
</div>
<NButton type="primary" size="large" round block :loading="authStore.loginLoading" @click="handleSubmit">
登录
</NButton>