angular刷新404解决办法
2019-03-18 本文已影响0人
天青lenk
配置app.module.ts
import { HashLocationStrategy, LocationStrategy } from '@angular/common';
@NgModule({
providers: [{ provide: LocationStrategy, useClass: HashLocationStrategy }],
})
ok
配置app.module.ts
import { HashLocationStrategy, LocationStrategy } from '@angular/common';
@NgModule({
providers: [{ provide: LocationStrategy, useClass: HashLocationStrategy }],
})
ok