fix: 登录接口参数变更
This commit is contained in:
@@ -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
|
||||
```
|
||||
```
|
||||
|
||||
@@ -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
|
||||
|
||||
1
src/typings/api.d.ts
vendored
1
src/typings/api.d.ts
vendored
@@ -136,6 +136,7 @@ declare namespace Api {
|
||||
password: string;
|
||||
code: 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']
|
||||
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']
|
||||
|
||||
@@ -21,7 +21,8 @@ const model = reactive({
|
||||
username: 'ryadmin',
|
||||
password: 'admin123',
|
||||
code: '',
|
||||
uuid: ''
|
||||
uuid: '',
|
||||
authType: 'sys'
|
||||
});
|
||||
|
||||
const rules = {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user