fix secretwebpath

This commit is contained in:
Дмитрий Саенко 2025-10-23 14:14:45 +03:00
parent 62fccb7ea5
commit 56109965f4

View file

@ -309,10 +309,10 @@
} }
let secretWebPath = this.modal.server.secretWebPath; let secretWebPath = this.modal.server.secretWebPath;
if (!secretWebPath.startsWith('/')) { if (!secretWebPath.startsWith('/')) {
secretWebPath = '/' + secretWebPath.slice(1); secretWebPath = '/' + secretWebPath;
} }
if (!secretWebPath.endsWith('/')) { if (!secretWebPath.endsWith('/')) {
secretWebPath = secretWebPath.slice(0, -1) + '/'; secretWebPath = secretWebPath + '/';
} }
console.log(this.modal.server); console.log(this.modal.server);
axios axios