Angular路由与节点服务器协调工作正常。 npm start,但在ng build --prod
之后在Xampp中部署文件时不起作用const routes : Routes =[
{path:"", component: HomeComponent},
{path:"outstation", component: HomeComponent},
{path:"local", component: HomeComponent},
{path:"terms", component: TermsComponent},
{path:"privacy_policy", component: privacy_policyComponent},
{path:"select_cars", component: SelectCarComponent},
{path:"select_cars", component: SelectCarComponent},
{path:"press_release", component: press_releaseComponent},
{path:"account", component: AccountSettingComponent},
{path:"logout", component: LogoutComponent},
{path:"**", component: PageNotFoundComponent},
]