fix: 登录接口参数变更
This commit is contained in:
@@ -17,6 +17,7 @@
|
|||||||
npm install -g pnpm
|
npm install -g pnpm
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
npm install -g pnpm
|
||||||
pnpm i
|
pnpm i
|
||||||
```
|
```
|
||||||
> 由于本项目采用了 pnpm monorepo 的管理方式,因此请不要使用 npm 或 yarn 来安装依赖。
|
> 由于本项目采用了 pnpm monorepo 的管理方式,因此请不要使用 npm 或 yarn 来安装依赖。
|
||||||
@@ -31,4 +32,4 @@ pnpm dev
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
pnpm build
|
pnpm build
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import type { AxiosRequestConfig } from 'axios';
|
import type { AxiosRequestConfig } from 'axios';
|
||||||
import { useAuthStore } from '@/store/modules/auth';
|
import { useAuthStore } from '@/store/modules/auth';
|
||||||
import { localStg } from '@/utils/storage';
|
import { localStg } from '@/utils/storage';
|
||||||
import { fetchRefreshToken } from '../api';
|
import { fetchRefreshToken } from '../api/auth';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* refresh token
|
* refresh token
|
||||||
|
|||||||
1
src/typings/api.d.ts
vendored
1
src/typings/api.d.ts
vendored
@@ -136,6 +136,7 @@ declare namespace Api {
|
|||||||
password: string;
|
password: string;
|
||||||
code: string;
|
code: string;
|
||||||
uuid: string;
|
uuid: string;
|
||||||
|
authType: string;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
2
src/typings/components.d.ts
vendored
2
src/typings/components.d.ts
vendored
@@ -32,7 +32,6 @@ declare module 'vue' {
|
|||||||
AMenuDivider: typeof import('ant-design-vue/es')['MenuDivider']
|
AMenuDivider: typeof import('ant-design-vue/es')['MenuDivider']
|
||||||
AMenuItem: typeof import('ant-design-vue/es')['MenuItem']
|
AMenuItem: typeof import('ant-design-vue/es')['MenuItem']
|
||||||
AModal: typeof import('ant-design-vue/es')['Modal']
|
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']
|
APopconfirm: typeof import('ant-design-vue/es')['Popconfirm']
|
||||||
APopover: typeof import('ant-design-vue/es')['Popover']
|
APopover: typeof import('ant-design-vue/es')['Popover']
|
||||||
AppLoading: typeof import('./../components/common/app-loading.vue')['default']
|
AppLoading: typeof import('./../components/common/app-loading.vue')['default']
|
||||||
@@ -64,7 +63,6 @@ declare module 'vue' {
|
|||||||
IconGridiconsFullscreen: typeof import('~icons/gridicons/fullscreen')['default']
|
IconGridiconsFullscreen: typeof import('~icons/gridicons/fullscreen')['default']
|
||||||
IconGridiconsFullscreenExit: typeof import('~icons/gridicons/fullscreen-exit')['default']
|
IconGridiconsFullscreenExit: typeof import('~icons/gridicons/fullscreen-exit')['default']
|
||||||
IconIcRoundDelete: typeof import('~icons/ic/round-delete')['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']
|
IconIcRoundPlus: typeof import('~icons/ic/round-plus')['default']
|
||||||
IconIcRoundRefresh: typeof import('~icons/ic/round-refresh')['default']
|
IconIcRoundRefresh: typeof import('~icons/ic/round-refresh')['default']
|
||||||
IconIcRoundSearch: typeof import('~icons/ic/round-search')['default']
|
IconIcRoundSearch: typeof import('~icons/ic/round-search')['default']
|
||||||
|
|||||||
@@ -21,7 +21,8 @@ const model = reactive({
|
|||||||
username: 'ryadmin',
|
username: 'ryadmin',
|
||||||
password: 'admin123',
|
password: 'admin123',
|
||||||
code: '',
|
code: '',
|
||||||
uuid: ''
|
uuid: '',
|
||||||
|
authType: 'sys'
|
||||||
});
|
});
|
||||||
|
|
||||||
const rules = {
|
const rules = {
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ export default defineConfig(configEnv => {
|
|||||||
server: {
|
server: {
|
||||||
host: '0.0.0.0',
|
host: '0.0.0.0',
|
||||||
port: 9527,
|
port: 9527,
|
||||||
open: true,
|
open: false,
|
||||||
proxy: createViteProxy(viteEnv, configEnv.command === 'serve'),
|
proxy: createViteProxy(viteEnv, configEnv.command === 'serve'),
|
||||||
fs: {
|
fs: {
|
||||||
cachedChecks: false
|
cachedChecks: false
|
||||||
|
|||||||
Reference in New Issue
Block a user