优化产品详情页面seo

This commit is contained in:
hejin 2025-09-25 20:08:56 +08:00
parent d6c581beff
commit a9cd952636

View File

@ -336,6 +336,14 @@ export default {
] ]
} }
}, },
mounted() {
setTimeout(() => {
let previewDom = document.querySelector('.img-region');
if (previewDom) {
previewDom.alt = '图片预览'
}
}, 0)
},
methods: { methods: {
onSubmit(e) { onSubmit(e) {
e.preventDefault() e.preventDefault()