|
|
|
@ -6,6 +6,9 @@ import { createVNode } from "vue"; |
|
|
|
import ErrorDialog from "@/components/ErrorDialog.vue"; |
|
|
|
|
|
|
|
function globalConfig() { |
|
|
|
window.globalConfig.axiosRequestDef = () => ({ |
|
|
|
timeout: 1000 * 60 * 10, |
|
|
|
}) |
|
|
|
window.globalConfig.customAxios = axiosInstance => { |
|
|
|
// 全局请求拦截
|
|
|
|
axiosInstance.interceptors.request.clear(); |
|
|
|
|