mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-14 11:05:06 +08:00
1.同步调整到OAuth2方式登录 2.微信小程序一键登录;
This commit is contained in:
14
yudao-ui-app/utils/request/index.js
Normal file
14
yudao-ui-app/utils/request/index.js
Normal file
@ -0,0 +1,14 @@
|
||||
// 引入配置
|
||||
import config from '@/common/config'
|
||||
// 初始化请求配置
|
||||
uni.$u.http.setConfig((defaultConfig) => {
|
||||
/* defaultConfig 为默认全局配置 */
|
||||
defaultConfig.baseURL = config.baseUrl /* 根域名 */
|
||||
defaultConfig.header = config.header
|
||||
return defaultConfig
|
||||
})
|
||||
|
||||
module.exports = (vm) => {
|
||||
require('./requestInterceptors')(vm)
|
||||
require('./responseInterceptors')(vm)
|
||||
}
|
Reference in New Issue
Block a user