context-path 처리 수정

This commit is contained in:
현성필
2024-01-30 12:04:04 +09:00
parent 5d8737c418
commit 138df62770
+5
View File
@@ -15,9 +15,14 @@ class APIClient {
this.variables = {};
this.abortController = null;
this.contextPath = document.querySelector('meta[name="context-path"]').getAttribute('content');
if (!this.contextPath) {
this.contextPath = '/';
}
if (!this.contextPath.endsWith('/')) {
this.contextPath += '/';
}
}
getClientUrl() {