chore: apply coderabbitai suggestions

This commit is contained in:
Li Kui
2025-11-06 15:11:28 +08:00
parent b472fbb72f
commit 57620dc2ea
6 changed files with 125 additions and 4 deletions

View File

@@ -187,7 +187,7 @@ async function initComponentAdapter() {
}
return h(
Button,
{ ...props, ghost, variant, attrs, theme: 'default' },
{ ...props, ghost, variant, attrs, theme: 'primary' },
slots,
);
},

View File

@@ -19,7 +19,7 @@ const routes: RouteRecordRaw[] = [
},
name: 'AntDesignDemos',
path: '/demos/ant-design',
component: () => import('#/views/demos/antd/index.vue'),
component: () => import('#/views/demos/tdesign/index.vue'),
},
],
},

View File

@@ -7,9 +7,9 @@ import { LOGIN_PATH } from '@vben/constants';
import { preferences } from '@vben/preferences';
import { resetAllStores, useAccessStore, useUserStore } from '@vben/stores';
import { notification } from '#/adapter/tdesign';
import { defineStore } from 'pinia';
import { notification } from '#/adapter/tdesign';
import { getAccessCodesApi, getUserInfoApi, loginApi, logoutApi } from '#/api';
import { $t } from '#/locales';
@@ -30,7 +30,7 @@ export const useAuthStore = defineStore('auth', () => {
onSuccess?: () => Promise<void> | void,
) {
// 异步处理用户登录操作并获取 accessToken
const userInfo: null | UserInfo = null;
let userInfo: null | UserInfo = null;
try {
loginLoading.value = true;
const { accessToken } = await loginApi(params);