| 1234567891011121314151617181920212223242526 |
- // 引入vuex
- // import store from '@/common/store';
- // 引入拦截器配置
- import {requestInterceptors,responseInterceptors} from './interceptors.js'
- // 初始化请求配置
- const initRequest=(vm)=>{
- uni.$u.http.setConfig((defaultConfig) => {
- /* defaultConfig 为默认全局配置 */
- // defaultConfig.baseURL = "http://222.85.201.140:10001/" /* 根域名 */
- // 域名
- defaultConfig.baseURL = "https://jje.admin.xinyuekj.com.cn/" /* 根域名 */
-
- return defaultConfig;
- })
- requestInterceptors()
- responseInterceptors()
- }
- export {
- initRequest
- }
|