mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-11-10 07:28:24 +08:00
parent
4d74a2c66f
commit
7d9e973f43
|
@ -57,7 +57,7 @@ const transform: AxiosTransform = {
|
|||
const { apiUrl, isJoinPrefix, urlPrefix, joinParamsToUrl, formatDate, joinTime = true } = options;
|
||||
|
||||
// 添加接口前缀
|
||||
if (isJoinPrefix) {
|
||||
if (isJoinPrefix && urlPrefix && isString(urlPrefix)) {
|
||||
config.url = `${urlPrefix}${config.url}`;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user