element.setcapture() 已弃用 Vue.js

问题描述 投票:0回答:1

我正在使用 google books API 制作一个 Vue.js 项目。

一切都很好,直到这个错误突然出现:

element.setcapture() 已弃用。使用 element.setpointercapture() 相反,欲了解更多信息: https://developer.mozilla.org/fr/docs/Web/API/Element/setPointerCapture

我没有明确使用 setcapture() 但也许它与

有关
<div v-if="imageLinks" class="BookCard" 
@mouseover="isMobile ? null : vueInfo = true"
@click="isMobile ? vueInfo = !vueInfo : null" 
@mouseleave="isMobile ? null : vueInfo = false">

即使我重新使用先前的存储库,也会发生同样的情况。直到三天前我还没有出现任何错误。

问题是在 css 和上面的代码中悬停不起作用

这与软件更新有关吗?

如果你想查看完整的代码,这是我的 git : https://github.com/LaurianeGelebart/web_project.git

谢谢你

javascript vue.js deprecated
1个回答
0
投票

我将 z 索引恢复为 0,问题就解决了!

© www.soinside.com 2019 - 2024. All rights reserved.