qiankun
qiankun copied to clipboard
Correct invocation of the sub-app services
Hi,
I am trying to integrate an Angular application as a sub application that invokes services at a specific server/port (localhost:XXXX), which as a single application it's works. Integrated as a sub-app in qiankun, however the services that are called no longer point to the correct server/port, but to that of the main app.
Example: if previously the services pointed to localhost:9000 now as a sub-app point to localhost:7099.
How can I do to keep the Angular application pointing correctly?
Thanks
Because the URL of your sub application request uses a relative path, it will be relative to the url of the current page。You should use absolute path