Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

项目运行起来后前端访问列表页下的角色列表和用户列表报错 #3472

Closed
liu923014086 opened this issue Mar 2, 2022 · 7 comments

Comments

@liu923014086
Copy link

版本号:

master

问题描述:

项目运行起来后前端访问列表页下的角色列表和用户列表报错

截图&代码:

vue.runtime.esm.js?2b0e:619 [Vue warn]: Error in data(): "TypeError: Cannot read properties of undefined (reading 'x')"

found in

at src/views/examples/list/RoleList.vue at src/components/layouts/RouteView.vue at src/components/page/PageLayout.vue at src/components/layouts/PageView.vue at src/components/page/GlobalLayout.vue at src/components/layouts/TabLayout.vue at src/App.vue

且每次点击时会报Uncaught (in promise) Error: Avoided redundant navigation to current location: "/list/role-list".
at createRouterError (vue-router.esm.js?8c4f:2062:1)
at createNavigationDuplicatedError (vue-router.esm.js?8c4f:2035:1)
at HTML5History.confirmTransition (vue-router.esm.js?8c4f:2195:1)
at HTML5History.transitionTo (vue-router.esm.js?8c4f:2125:1)
at HTML5History.push (vue-router.esm.js?8c4f:2492:1)
at eval (vue-router.esm.js?8c4f:2913:1)
at new Promise ()
at VueRouter.push (vue-router.esm.js?8c4f:2912:1)
at VueComponent.localPaginationCurrent (index.js?e8c4:47:1)
at Watcher.run (vue.runtime.esm.js?2b0e:4568:1)

友情提示(为了提高issue处理效率):

  • 未按格式要求发帖,会被直接删掉;
  • 请自己初判问题描述是否清楚,是否方便我们调查处理;
  • 针对问题请说明是Online在线功能(需说明用的主题模板),还是生成的代码功能;
  • 描述过于简单或模糊,导致无法处理的,会被直接删掉;
@liu923014086
Copy link
Author

经过源码查看发现ant-design-vue-jeecg/node_modules/ant-design-vue/es/table/Table.js下148行判断warning(!props.expandedRowRender || !('scroll' in props) || !props.scroll.x, 'expandedRowRender and scroll are not compatible. Please use one of them at one time.');
此判断有问题,props.scroll是undefined

@liu923014086
Copy link
Author

版本是否考虑一下更新此问题?

@zhangdaiscott
Copy link
Member

截图看看,是那个菜单

@liu923014086
Copy link
Author

image

@zhangdaiscott
Copy link
Member

这是示例,不重要,等下个版本我们看看

@zhangdaiscott
Copy link
Member

收录 jl

@1298191366
Copy link

已修复,待新版本发布

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants