提交 d824ab65 authored 作者: leon's avatar leon

Merge remote-tracking branch 'origin/master'

...@@ -118,10 +118,7 @@ const transform: AxiosTransform = { ...@@ -118,10 +118,7 @@ const transform: AxiosTransform = {
config.params = undefined; config.params = undefined;
} }
if (joinParamsToUrl) { if (joinParamsToUrl) {
config.url = setObjToUrlParams( config.url = setObjToUrlParams(config.url as string, Object.assign({}, config.params, config.data));
config.url as string,
Object.assign({}, config.params, config.data),
);
} }
} else { } else {
// 兼容restful风格 // 兼容restful风格
...@@ -200,7 +197,7 @@ function createAxios(opt?: Partial<CreateAxiosOptions>) { ...@@ -200,7 +197,7 @@ function createAxios(opt?: Partial<CreateAxiosOptions>) {
// authentication schemes,e.g: Bearer // authentication schemes,e.g: Bearer
// authenticationScheme: 'Bearer', // authenticationScheme: 'Bearer',
authenticationScheme: '', authenticationScheme: '',
timeout: 10 * 1000, timeout: 30 * 1000,
// 基础接口地址 // 基础接口地址
// baseURL: globSetting.apiUrl, // baseURL: globSetting.apiUrl,
......
...@@ -168,6 +168,14 @@ ...@@ -168,6 +168,14 @@
}, },
); );
watch(
() => formData.parentId,
(n) => {
if (n === 0) {
formData.name = formData.lineName;
}
},
);
onMounted(() => { onMounted(() => {
handleGetLineList(); handleGetLineList();
}); });
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论