no message

This commit is contained in:
A1300399510
2024-11-05 14:21:13 +08:00
parent 1698f63954
commit 39f2396c44
3 changed files with 8 additions and 4 deletions

View File

@@ -437,7 +437,7 @@
selectBase64: "",
},
mounted() {
// axios.defaults.headers.common["Authorization"] = "3v900y3avdzkp1ljhuycvhq2ck7ah01y"
axios.defaults.headers.common["Authorization"] = "ld9bk0gpdkqkydoyhdiqkvlm68cgxmjc"
this.base01 = base01
this.base02 = base02
@@ -463,8 +463,10 @@
const canvas = document.createElement("canvas")
canvas.width = img.naturalWidth
canvas.height = img.naturalHeight
const ctx = canvas.getContext("2d")
// 设置背景色为透明或白色
ctx.fillStyle = "#ffffff" // 设置为白色
ctx.fillRect(0, 0, canvas.width, canvas.height)
ctx.drawImage(img, 0, 0)
this.offerinfo.school["base64"] = canvas.toDataURL("image/jpeg")
@@ -475,6 +477,9 @@
canvas.height = img.naturalHeight
const ctx = canvas.getContext("2d")
ctx.fillStyle = "#ffffff" // 设置为白色
ctx.fillRect(0, 0, canvas.width, canvas.height)
ctx.drawImage(img, 0, 0)
this.offercollege[index]["base64"] = canvas.toDataURL("image/jpeg")