尝试修改BUG尝试2
This commit is contained in:
1 parent
662be0dc6c
commit
f3d9a7e498
1 file changed
+3
@@ -74,9 +74,12 @@ function previewImage (e: Event) {
|
|||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
console.log("onMounted");
|
console.log("onMounted");
|
||||||
if (typeof document !== 'undefined') {
|
if (typeof document !== 'undefined') {
|
||||||
|
console.log("typeof document !== 'undefined'");
|
||||||
// 使用document的代码
|
// 使用document的代码
|
||||||
const docDomContainer = document.querySelector('#VPContent')
|
const docDomContainer = document.querySelector('#VPContent')
|
||||||
|
console.log("docDomContainer");
|
||||||
docDomContainer?.addEventListener('click', previewImage)
|
docDomContainer?.addEventListener('click', previewImage)
|
||||||
|
console.log("docDomContainer?.addEventListener");
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user