chore: apply coderabbitai suggestions
This commit is contained in:
@@ -187,7 +187,7 @@ async function initComponentAdapter() {
|
||||
}
|
||||
return h(
|
||||
Button,
|
||||
{ ...props, ghost, variant, attrs, theme: 'default' },
|
||||
{ ...props, ghost, variant, attrs, theme: 'primary' },
|
||||
slots,
|
||||
);
|
||||
},
|
||||
|
||||
@@ -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'),
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user