We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d74a2c commit 7d9e973Copy full SHA for 7d9e973
1 file changed
src/utils/request/index.ts
@@ -57,7 +57,7 @@ const transform: AxiosTransform = {
57
const { apiUrl, isJoinPrefix, urlPrefix, joinParamsToUrl, formatDate, joinTime = true } = options;
58
59
// 添加接口前缀
60
- if (isJoinPrefix) {
+ if (isJoinPrefix && urlPrefix && isString(urlPrefix)) {
61
config.url = `${urlPrefix}${config.url}`;
62
}
63
0 commit comments