mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-06-12 13:19:31 +08:00
refactor: 将页面配置通过插件动态化配置(plugin-uni-halo)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* 功能:请求工具
|
||||
* 功能:请求工具
|
||||
* 作者:小莫唐尼
|
||||
* 邮箱:studio@925i.cn
|
||||
* 时间:2022年07月21日 18:58:03
|
||||
@@ -10,7 +10,6 @@
|
||||
* 修改时间:
|
||||
*/
|
||||
|
||||
import HaloConfig from '@/config/halo.config.js'
|
||||
import HaloTokenConfig from '@/config/token.config.js'
|
||||
import {
|
||||
setInterceptors
|
||||
@@ -25,13 +24,13 @@ http.setConfig((config) => {
|
||||
config.baseURL = HaloTokenConfig.BASE_API;
|
||||
|
||||
config.header = {
|
||||
...config.header,
|
||||
...config.header,
|
||||
ContentType: 'application/json',
|
||||
dataType: 'json'
|
||||
}
|
||||
return config
|
||||
})
|
||||
|
||||
|
||||
setInterceptors(http)
|
||||
|
||||
export {
|
||||
|
||||
Reference in New Issue
Block a user