2
0

fix: 登录接口参数变更

This commit is contained in:
TsMask
2024-11-27 15:37:03 +08:00
parent 074f9282dd
commit b82f71b763
6 changed files with 7 additions and 6 deletions

View File

@@ -17,6 +17,7 @@
npm install -g pnpm
```bash
npm install -g pnpm
pnpm i
```
> 由于本项目采用了 pnpm monorepo 的管理方式,因此请不要使用 npm 或 yarn 来安装依赖。
@@ -31,4 +32,4 @@ pnpm dev
```bash
pnpm build
```
```

View File

@@ -1,7 +1,7 @@
import type { AxiosRequestConfig } from 'axios';
import { useAuthStore } from '@/store/modules/auth';
import { localStg } from '@/utils/storage';
import { fetchRefreshToken } from '../api';
import { fetchRefreshToken } from '../api/auth';
/**
* refresh token

View File

@@ -136,6 +136,7 @@ declare namespace Api {
password: string;
code: string;
uuid: string;
authType: string;
}
}

View File

@@ -32,7 +32,6 @@ declare module 'vue' {
AMenuDivider: typeof import('ant-design-vue/es')['MenuDivider']
AMenuItem: typeof import('ant-design-vue/es')['MenuItem']
AModal: typeof import('ant-design-vue/es')['Modal']
AntTree: typeof import('./../components/custom/ant-tree.vue')['default']
APopconfirm: typeof import('ant-design-vue/es')['Popconfirm']
APopover: typeof import('ant-design-vue/es')['Popover']
AppLoading: typeof import('./../components/common/app-loading.vue')['default']
@@ -64,7 +63,6 @@ declare module 'vue' {
IconGridiconsFullscreen: typeof import('~icons/gridicons/fullscreen')['default']
IconGridiconsFullscreenExit: typeof import('~icons/gridicons/fullscreen-exit')['default']
IconIcRoundDelete: typeof import('~icons/ic/round-delete')['default']
IconIcRoundMenu: typeof import('~icons/ic/round-menu')['default']
IconIcRoundPlus: typeof import('~icons/ic/round-plus')['default']
IconIcRoundRefresh: typeof import('~icons/ic/round-refresh')['default']
IconIcRoundSearch: typeof import('~icons/ic/round-search')['default']

View File

@@ -21,7 +21,8 @@ const model = reactive({
username: 'ryadmin',
password: 'admin123',
code: '',
uuid: ''
uuid: '',
authType: 'sys'
});
const rules = {

View File

@@ -32,7 +32,7 @@ export default defineConfig(configEnv => {
server: {
host: '0.0.0.0',
port: 9527,
open: true,
open: false,
proxy: createViteProxy(viteEnv, configEnv.command === 'serve'),
fs: {
cachedChecks: false