diff --git a/service/CustomerService.js b/service/CustomerService.js index 9721eb3f5..14049c42a 100755 --- a/service/CustomerService.js +++ b/service/CustomerService.js @@ -1,6 +1,7 @@ export default class CustomerService { constructor() { const runtimeConfig = useRuntimeConfig(); + this.contextPath = runtimeConfig.public.contextPath; } diff --git a/service/NodeService.js b/service/NodeService.js index a1f6c01ed..ef92eeb8f 100755 --- a/service/NodeService.js +++ b/service/NodeService.js @@ -1,6 +1,7 @@ export default class NodeService { constructor() { const runtimeConfig = useRuntimeConfig(); + this.contextPath = runtimeConfig.public.contextPath; } diff --git a/service/ProductService.js b/service/ProductService.js index cc9154c95..6ea75b23f 100644 --- a/service/ProductService.js +++ b/service/ProductService.js @@ -1,7 +1,7 @@ - export default class ProductService { constructor() { const runtimeConfig = useRuntimeConfig(); + this.contextPath = runtimeConfig.public.contextPath; }