viewlogic 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/viewlogic-router.js
CHANGED
|
@@ -112,9 +112,13 @@ export class ViewLogicRouter {
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
if (this.config.useComponents) {
|
|
115
|
+
// 현재 사이트의 도메인을 기준으로 컴포넌트 경로 설정
|
|
116
|
+
const currentOrigin = window.location.origin;
|
|
117
|
+
const componentsBasePath = `${currentOrigin}${this.config.basePath}/components`;
|
|
118
|
+
|
|
115
119
|
this.componentLoader = new ComponentLoader(this, {
|
|
116
120
|
...this.config,
|
|
117
|
-
basePath:
|
|
121
|
+
basePath: componentsBasePath,
|
|
118
122
|
cache: true,
|
|
119
123
|
componentNames: this.config.componentNames
|
|
120
124
|
});
|