This commit is contained in:
yanran200730
2022-05-26 09:30:49 +08:00
parent 4f5ecd6799
commit 2c763096f1
2 changed files with 3 additions and 1 deletions

View File

@@ -166,6 +166,7 @@
success: res => {
let formData = new FormData()
formData.append('file', res.tempFiles[0])
this.$loading()
this.$http.post('/admin/file/add2?type=image', formData).then(res => {
if (res.code === 0) {
this.linkTo(`./Watermark?url=${res.data.url}&albumId=${this.id}`)
@@ -201,7 +202,7 @@
this.current = this.current + 1
if (res.data.records.length && this.coverImg) {
if (res.data.records.length && !this.coverImg) {
this.coverImg = res.data.records[0].photoUrl
}
}

View File

@@ -158,6 +158,7 @@
success: res => {
let formData = new FormData()
formData.append('file', res.tempFiles[0])
this.$loading()
this.$http.post('/admin/file/add2?type=image', formData).then(res => {
if (res.code === 0) {
this.linkTo(`./Watermark?url=${res.data.url}`)