问题描述
我已经生成了一个JHipster项目,并将gif作为旋转程序加载到了index.html中。
当我到达组件的主路径时(例如说localhost:9000 / dossiers / detail),但是当我想使用相同的URL访问同一组件的另一个页面时,使用此微调器的一切都很好带有参数的参数(例如:localhost:9000 / dossiers / detail?affCode = abc),微调框确实显示,但浏览器取消了CSS。因此,微调框显示在页面的左上角,而不是在中间。
这是解决此问题的方法吗?我看到了当浏览器遇到iframe问题时发生的“已取消”事件。它会与带有参数的URL相关吗?
要将不同页面链接到同一组件,我使用了路由,即JHipster在生成实体页面时所使用的路由,例如:
export const recordsRoutes: Routes = [
{
path: '',component: RecordsComponent,data: {
authorities: [Authority.USER],defaultSort: 'affCode,asc',pageTitle: 'records.title',},canActivate: [UserRouteAccessService],{
path: 'detail',component: DetailledRecordComponent,resolve: {
recordDetailQuotes: RecordDetailResolve,data: {
authorities: [Authority.USER],pageTitle: 'detailledRecord.title',
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)