修改文档详情显示乱码的问题

This commit is contained in:
qq787203167
2022-03-25 12:17:24 +08:00
parent 4b983bf15c
commit b90ea6a981
3 changed files with 12 additions and 9 deletions
-2
View File
@@ -1,6 +1,5 @@
let watermark = {}
let setWatermark = (str) => {
console.log(str)
let id = Date.parse(new Date())
if (document.getElementById(id) !== null) {
document.body.removeChild(document.getElementById(id))
@@ -20,7 +19,6 @@ let setWatermark = (str) => {
document.getElementsByClassName('detail-content')[0].style.background = 'url(' + can.toDataURL('image/png') + ') left top repeat'
}
console.log(id)
return id
}