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.
16 lines
432 B
16 lines
432 B
import Request from '@/js_sdk/luch-request/request'
|
|
|
|
const http = new Request();
|
|
|
|
http.setConfig((config) => { /* 设置全局配置 */
|
|
config.baseUrl = 'https://api.alinkwise.com'; /* 根域名不同 */
|
|
return config;
|
|
})
|
|
http.interceptor.request((config, cancel) => { /* 请求之前拦截器 */
|
|
return config;
|
|
})
|
|
|
|
http.interceptor.response((response) => { /* 请求之后拦截器 */
|
|
return response
|
|
})
|
|
export default http;
|