修改angular应用中的base href的值
编辑angular.json
文件,找到下面的位置添加"baseHref":"/"
.
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
...
"baseHref": "/",
...
}
}