我运行以下命令
ng build --base-href /extDataAngular/
并将所有文件从Dist文件夹放入IIS-6服务器
当我尝试在浏览器中打开网址
它仅显示以下错误:
Not allowed to load local resource: file:///C:/Program%20Files/Git/extDataAngular/runtime.js
Not allowed to load local resource: file:///C:/Program%20Files/Git/extDataAngular/polyfills.js
Not allowed to load local resource: file:///C:/Program%20Files/Git/extDataAngular/styles.js
Not allowed to load local resource: file:///C:/Program%20Files/Git/extDataAngular/scripts.js
Not allowed to load local resource: file:///C:/Program%20Files/Git/extDataAngular/vendor.js
Not allowed to load local resource: file:///C:/Program%20Files/Git/extDataAngular/main.js
Not allowed to load local resource: file:///C:/Program%20Files/Git/assets/img/icon_logo.ico
反正有固定指向正确路径的资源路径吗?
正确的路径应为:// d:/ app / extDataAngular
当前错误的路径://C:/Program%20Files/Git/extDataAngular/vendor.js