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

nuxt3下将v-lazy认为是vue指令,导致服务端SSR启用。 #507

Open
tenfei4 opened this issue Jan 16, 2023 · 3 comments
Open

nuxt3下将v-lazy认为是vue指令,导致服务端SSR启用。 #507

tenfei4 opened this issue Jan 16, 2023 · 3 comments

Comments

@tenfei4
Copy link

tenfei4 commented Jan 16, 2023

nuxt3下将v-lazy认为是vue指令,导致服务端SSR启用,请问如何在NUXT3下使用或修改v-lazy指令。
已经标记了plugins/vueLazyload.js为非SSR。

以下为产生错误代码:

<div v-show="result.author.length>0" class='col-span-12'>
     <img v-bind:v-lazy="result.author[0].avatar">
 </div>

只在V-IF内产生错误 ,V-FOR下不会被认定为SSR模式。

@tenfei4
Copy link
Author

tenfei4 commented Jan 16, 2023

<div v-show="result.author.length>0" class='col-span-12'>
     <img v-lazy="result.author[0].avatar">
 </div>

也是一样的问题。

@hujie8087
Copy link

这个问题有解决办法吗?我也遇到这个问题了

@11003
Copy link

11003 commented Aug 25, 2024

这个问题有解决办法吗?我也遇到这个问题了

目前只能这样:

image

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