12345678910111213141516171819202122232425262728 |
- import {
- requestInterceptors,
- responseInterceptors
- } from './interceptors.js'
- import {
- http
- } from '@/uni_modules/uview-plus'
- const initRequest = (vm) => {
- http.setConfig((defaultConfig) => {
- defaultConfig.baseURL = 'http://tkhtest.natapp1.cc'
-
-
-
-
-
-
-
- return defaultConfig
- })
- requestInterceptors()
- responseInterceptors()
- }
- export {
- initRequest
- }
|