mirror of
https://gitee.com/TSpecific/tuniao-ui.git
synced 2026-03-12 02:24:00 +08:00
更新图标库
修复已知bug
This commit is contained in:
13
util/request/index.js
Normal file
13
util/request/index.js
Normal file
@@ -0,0 +1,13 @@
|
||||
// 引入配置
|
||||
import config from '@/common/config'
|
||||
// 初始化请求配置
|
||||
uni.$t.http.setConfig((defaultConfig) => {
|
||||
// defaultConfig 为默认全局配置
|
||||
defaultConfig.baseURL = config.baseUrl // 根域名
|
||||
return defaultConfig
|
||||
})
|
||||
|
||||
module.exports = (vm) => {
|
||||
require('./requestInterceptors')(vm)
|
||||
require('./responseInterceptors')(vm)
|
||||
}
|
||||
Reference in New Issue
Block a user