fix: 更改PC模版

This commit is contained in:
bac-joker 2021-04-09 19:22:33 +08:00
parent 65dbcdf76e
commit bba04c7e5d
3 changed files with 3 additions and 20 deletions

View File

@ -54,7 +54,7 @@
"@fesjs/plugin-enums": "^2.0.0-rc.0",
"@fesjs/plugin-jest": "^2.0.0-rc.0",
"@fesjs/plugin-vuex": "^2.0.0-rc.0",
"ant-design-vue": "2.0.0",
"ant-design-vue": "^2.0.0",
"vue": "^3.0.5",
"vuex": "^4.0.0"
},

View File

@ -1,19 +1 @@
import { requestWrap } from '@fesjs/fes';
// TODO
// 响应体控制
// formData 控制
// 错误控制
// 跳错误页面 || 或者重新登录
// 段时间内不能重复发送的请求
// or
export default requestWrap({
login: {
url: '',
throttle: 300,
options: {
method: 'get'
}
}
});
// 服务端接口管理

View File

@ -87,6 +87,7 @@ function getRequestInstance() {
};
}
// FEATURE 后续优化,使用 axios baseURL
function handleApiPathBase(url, options = {}) {
if (url.startsWith('http')) return url;