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

开发环境中 a-menu 组件控制台报警告 #35

Open
nigiwen opened this issue Jan 3, 2024 · 5 comments
Open

开发环境中 a-menu 组件控制台报警告 #35

nigiwen opened this issue Jan 3, 2024 · 5 comments

Comments

@nigiwen
Copy link

nigiwen commented Jan 3, 2024

chunk-VWWL2I6E.js?v=35981333:1449 [Vue warn]: Hydration node mismatch:
- Client vnode: Symbol(v-cmt) 
- Server rendered DOM: "" (text) 
  at <AMenuItem> 
  at <Anonymous> 
  at <ResizeObserver disabled=true onResize=fn<onOverflowResize> > 
  at <Overflow onMousedown=undefined prefixCls="ant-dropdown-menu-overflow" component="ul"  ... > 
  at <AMenu mode="vertical" selectable=false expandIcon=fn<expandIcon>  ... > 
  at <Align target=fn<bound getRootDomNode> key="popup" ref=Ref< undefined >  ... > 
  at <BaseTransition onBeforeEnter=fn<onBeforeEnter> appear=false persisted=false  ... > 
  at <Transition ref=Ref< undefined > onBeforeEnter=fn<onShowPrepare> > 
  at <PopupInner prefixCls="ant-dropdown" point=null align= {points: Array(2), overflow: {}, offset: Array(2), targetOffset: Array(2), ignoreShake: true}  ... > 
  at <Popup prefixCls="ant-dropdown" destroyPopupOnHide=false visible=true  ... > 
  at <Portal getContainer=fn<getContainer3> ref=Ref< undefined > didUpdate=fn<bound handlePortalUpdate> > 
  at <PortalWrapper key="portal" getContainer=fn didUpdate=fn<bound handlePortalUpdate>  ... > 
  at <Trigger openClassName=undefined minOverlayWidthMatchTrigger=undefined alignPoint=undefined  ... > 
  at <Anonymous arrow=true trigger="hover" menu=undefined  ... > 
  at <ADropdown key="bottomLeft" placement="bottomLeft" arrow="" > 
  at <ASpace style= {display: 'flex', flex-wrap: 'wrap'} > 
  at <Index onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< Proxy(Object) {__v_skip: true} > > 
  at <RouteProvider key="/" vnode= {__v_isVNode: true, __v_skip: true, type: {}, props: {}, key: null, …} route= {fullPath: '/', hash: '', query: {}, name: 'index', path: '/', …}  ... > 
  at <RouterView name=undefined route=undefined > 
  at <NuxtPage> 
  at <Anonymous hasSider=undefined prefixCls="ant-layout-content" tagName="main"  ... > 
  at <ALayoutContent bg="#ffffff" m="t-6 x-4 b-0" min-h-70=""  ... > 
  at <Anonymous hasSider=undefined prefixCls="ant-layout" tagName="section" > 
  at <ALayout> 
  at <Anonymous hasSider=undefined prefixCls="ant-layout" tagName="section"  ... > 
  at <ALayout id="classic-layout" min-h="100vh" > 
  at <Default ref=Ref< Proxy(Object) {__v_skip: true} > > 
  at <AsyncComponentWrapper ref=Ref< Proxy(Object) {__v_skip: true} > > 
  at <NuxtLayoutProvider layoutProps= {ref: RefImpl} key="default" name="default"  ... > 
  at <NuxtLayout> 
  at <App key=3 > 
  at <NuxtRoot>
@aibayanyu20
Copy link
Member

改用items的模式试一下呢

@nigiwen
Copy link
Author

nigiwen commented Jan 4, 2024

改用items的模式试一下呢

我没明白你说的什么意思

@aibayanyu20
Copy link
Member

看antdv4中的例子

@nigiwen
Copy link
Author

nigiwen commented Jan 4, 2024

改用items的模式试一下呢

依旧报错

<a-menu :items="items" />

@nigiwen nigiwen changed the title 开发环境中 a-menu-item 组件控制台报警告 开发环境中 a-menu 组件控制台报警告 Jan 4, 2024
@ezewu
Copy link

ezewu commented Apr 21, 2024

我的也这样,解决没有?

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