diff --git a/.env.development b/.env.development index b34f073..a5b855b 100644 --- a/.env.development +++ b/.env.development @@ -1,8 +1,8 @@ # 页面标题 VITE_APP_TITLE = 后台基础框架 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -# VITE_APP_API_BASEURL = http://111.198.10.15:11309 -VITE_APP_API_BASEURL = http://111.198.10.15:21409 +VITE_APP_API_BASEURL = http://111.198.10.15:11309 +# VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/.env.development b/.env.development index b34f073..a5b855b 100644 --- a/.env.development +++ b/.env.development @@ -1,8 +1,8 @@ # 页面标题 VITE_APP_TITLE = 后台基础框架 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -# VITE_APP_API_BASEURL = http://111.198.10.15:11309 -VITE_APP_API_BASEURL = http://111.198.10.15:21409 +VITE_APP_API_BASEURL = http://111.198.10.15:11309 +# VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/src/axios.d.ts b/src/axios.d.ts new file mode 100644 index 0000000..482c4dd --- /dev/null +++ b/src/axios.d.ts @@ -0,0 +1,7 @@ +import * as axios from 'axios' + +declare module 'axios' { + interface AxiosInstance { + (config: AxiosRequestConfig): Promise + } +} diff --git a/.env.development b/.env.development index b34f073..a5b855b 100644 --- a/.env.development +++ b/.env.development @@ -1,8 +1,8 @@ # 页面标题 VITE_APP_TITLE = 后台基础框架 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -# VITE_APP_API_BASEURL = http://111.198.10.15:11309 -VITE_APP_API_BASEURL = http://111.198.10.15:21409 +VITE_APP_API_BASEURL = http://111.198.10.15:11309 +# VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/src/axios.d.ts b/src/axios.d.ts new file mode 100644 index 0000000..482c4dd --- /dev/null +++ b/src/axios.d.ts @@ -0,0 +1,7 @@ +import * as axios from 'axios' + +declare module 'axios' { + interface AxiosInstance { + (config: AxiosRequestConfig): Promise + } +} diff --git a/src/views/system/area/list.area.vue b/src/views/system/area/list.area.vue index d071f14..1d5c05a 100644 --- a/src/views/system/area/list.area.vue +++ b/src/views/system/area/list.area.vue @@ -132,9 +132,9 @@