mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-27 15:41:32 +08:00
fix: repair local development post request proxy to https error problem (#63)
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
moment.locale('zh-cn');
|
||||
|
||||
export default defineComponent({
|
||||
name: 'App1',
|
||||
name: 'App',
|
||||
components: { ConfigProvider },
|
||||
setup() {
|
||||
useInitAppConfigStore();
|
||||
|
@@ -116,20 +116,20 @@ const transform: AxiosTransform = {
|
||||
} else {
|
||||
// 兼容restful风格
|
||||
config.url = config.url + config.params + `?_t=${now}`;
|
||||
config.params = {};
|
||||
config.params = undefined;
|
||||
}
|
||||
} else {
|
||||
if (!isString(config.params)) {
|
||||
formatDate && formatRequestDate(config.params);
|
||||
config.data = config.params;
|
||||
config.params = {};
|
||||
config.params = undefined;
|
||||
if (joinParamsToUrl) {
|
||||
config.url = setObjToUrlParams(config.url as string, config.data);
|
||||
}
|
||||
} else {
|
||||
// 兼容restful风格
|
||||
config.url = config.url + config.params;
|
||||
config.params = {};
|
||||
config.params = undefined;
|
||||
}
|
||||
}
|
||||
return config;
|
||||
|
Reference in New Issue
Block a user