Iis 7 角度基准

Iis 7 角度基准,iis-7,href,angular6,base,Iis 7,Href,Angular6,Base,我们有两个环境:开发和生产 假设我们有一个带有路由URL段的页面:order/sales/all 制作网址: http://www.example.com/order/sales/all 在app.module.ts Set[{provide:app_BASE_HREF,useValue:'/'中设置& 开发托管在本地IIS上 假设有两个以上的人在他们自己的分支机构工作 用户1 url:http://localhost/test1/order/sales/all 用户2 url:http://

我们有两个环境:开发和生产

假设我们有一个带有路由URL段的页面:order/sales/all

制作网址:

http://www.example.com/order/sales/all
在app.module.ts Set[{provide:app_BASE_HREF,useValue:'/'中设置
&

开发托管在本地IIS上

假设有两个以上的人在他们自己的分支机构工作

用户1 url:
http://localhost/test1/order/sales/all

用户2 url:
http://localhost/test2/order/sales/all

用户3 url:
http://localhost/test3/order/sales/all

如何将虚拟路径test1、test2、test3或任何东西设置为角度路由

如果我设置为
,那么每个用户都必须添加自己的分支,这是不可取的

有没有办法读取虚拟路径并将其动态设置为base href

或者我们可以忽略test1、test2、test3进行路由的任何其他替代方法

谢谢