Commit 712968b5293da193e0388502cbdac2f2eb9dae41
1 parent
e9d99e24
perf(src): 修复之前升级版本后,preview里部分代码注释了,axios配置文件ts类型错误
Showing
2 changed files
with
3 additions
and
3 deletions
1 | -import axios, { AxiosResponse, InternalAxiosRequestConfig, AxiosError } from 'axios' | |
1 | +import axios, { AxiosResponse, AxiosRequestConfig, AxiosError } from 'axios' | |
2 | 2 | import { ResultEnum } from "@/enums/httpEnum" |
3 | 3 | import { ErrorPageNameMap } from "@/enums/pageEnum" |
4 | 4 | import { redirectErrorPage } from '@/utils' |
... | ... | @@ -9,7 +9,7 @@ const axiosInstance = axios.create({ |
9 | 9 | }) |
10 | 10 | |
11 | 11 | axiosInstance.interceptors.request.use( |
12 | - (config: InternalAxiosRequestConfig) => { | |
12 | + (config: AxiosRequestConfig) => { | |
13 | 13 | return config |
14 | 14 | }, |
15 | 15 | (error: AxiosError) => { | ... | ... |
... | ... | @@ -32,7 +32,7 @@ import { PreviewRenderList } from './components/PreviewRenderList' |
32 | 32 | import { getFilterStyle, setTitle } from '@/utils' |
33 | 33 | |
34 | 34 | // THINGS_KIT 重写预览逻辑,调用接口 |
35 | -// import { getEditCanvasConfigStyle, getSessionStorageInfo, keyRecordHandle, dragCanvas } from './utils' | |
35 | +import { dragCanvas } from './utils' | |
36 | 36 | import { getEditCanvasConfigStyle,keyRecordHandle } from './utils' |
37 | 37 | import { getSessionStorageInfo } from './external/usePreview' |
38 | 38 | ... | ... |