feat: 更新银行卡信息编辑组件,优化用户体验,调整路由配置

This commit is contained in:
2026-01-13 22:26:47 +07:00
parent e3720742f7
commit 0adb734f84
5 changed files with 174 additions and 17 deletions

View File

@@ -1,6 +1,5 @@
<script setup lang="ts">
import { computed, reactive } from 'vue';
import { loginModuleRecord } from '@/constants/app';
import { useAuthStore } from '@/store/modules/auth';
import { useRouterPush } from '@/hooks/common/router';
import { useFormRules, useNaiveForm } from '@/hooks/common/form';
@@ -20,8 +19,8 @@ interface FormModel {
}
const model: FormModel = reactive({
userName: 'superadmin',
password: 'admin123'
userName: '',
password: ''
});
const rules = computed<Record<keyof FormModel, App.Global.FormRule[]>>(() => {
@@ -97,7 +96,8 @@ async function handleAccountLogin(account: Account) {
<NButton type="primary" size="large" round block :loading="authStore.loginLoading" @click="handleSubmit">
{{ $t('common.confirm') }}
</NButton>
<div class="flex-y-center justify-between gap-12px">
<!--
<div class="flex-y-center justify-between gap-12px">
<NButton class="flex-1" block @click="toggleLoginModule('code-login')">
{{ $t(loginModuleRecord['code-login']) }}
</NButton>
@@ -110,7 +110,8 @@ async function handleAccountLogin(account: Account) {
<NButton v-for="item in accounts" :key="item.key" type="primary" @click="handleAccountLogin(item)">
{{ item.label }}
</NButton>
</div>
</div>
-->
</NSpace>
</NForm>
</template>