廖井涛
14 小时以前 02a346b1b78c8d2b6b3c298ed2fb8feea8ef96ee
north-glass-erp/northglass-erp/src/utils/request.js
@@ -1,9 +1,8 @@
import axios from 'axios'
import config from '../../config'
import useUserInfoStore from '@/stores/userInfo'
const userStore=useUserInfoStore()
const request = axios.create({
    baseURL: `http://${config.serverUrl}`,  // 注意!! 这里是全局统一加上了 后端接口前缀 前缀,后端必须进行跨域配置!
    baseURL: `http://${window.ipConfig.serverUrl}`,  // 注意!! 这里是全局统一加上了 后端接口前缀 前缀,后端必须进行跨域配置!
    timeout: 60000
})