bug
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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}`)
|
||||
|
||||
Reference in New Issue
Block a user