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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viewlogic",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "A lightweight, file-based routing system for Vue 3 applications with zero build configuration",
5
5
  "main": "dist/viewlogic-router.umd.js",
6
6
  "module": "src/viewlogic-router.js",
@@ -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: this.config.basePath + '/components',
121
+ basePath: componentsBasePath,
118
122
  cache: true,
119
123
  componentNames: this.config.componentNames
120
124
  });