Skip to content

Commit 3da90ec

Browse files
committed
【fix】fix UT review by xiongjj
1 parent 64f3dae commit 3da90ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/commontypes/Util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ SuperMap.Util.urlPathAppend = function (url, pathStr) {
326326
pathStr = pathStr.substring(1);
327327
}
328328
const parts = url.split('?');
329-
if(!parts[0].indexOf('/', this.length - 1) !== -1){
329+
if(parts[0].indexOf('/', parts[0].length - 1) < 0){
330330
parts[0] += '/'
331331
}
332332
newUrl = `${parts[0]}${pathStr}${parts.length > 1 ? `?${parts[1]}` : ''}`;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy