用工小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
367 B

6 months ago
  1. // 引入配置
  2. import config from '@/common/config'
  3. // 初始化请求配置
  4. uni.$u.http.setConfig((defaultConfig) => {
  5. /* defaultConfig 为默认全局配置 */
  6. defaultConfig.baseURL = config.baseUrl /* 根域名 */
  7. return defaultConfig
  8. })
  9. module.exports = (vm) => {
  10. require('./requestInterceptors')(vm)
  11. require('./responseInterceptors')(vm)
  12. }