配置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
本文标题:angular刷新404解决办法
本文链接:https://www.haomeiwen.com/subject/sfpbmqtx.html
网友评论