only let uploader edit image
This commit is contained in:
parent
d2d5968d02
commit
65daeb0247
7 changed files with 115 additions and 7 deletions
|
|
@ -179,9 +179,13 @@ export default defineComponent({
|
|||
return await res.json()
|
||||
},
|
||||
async onSaveImageClick(data: any) {
|
||||
await this.saveImage(data)
|
||||
this.dialog = ''
|
||||
await this.loadImages()
|
||||
const res = await this.saveImage(data)
|
||||
if (res.ok) {
|
||||
this.dialog = ''
|
||||
await this.loadImages()
|
||||
} else {
|
||||
alert(res.error)
|
||||
}
|
||||
},
|
||||
async postToGalleryClick(data: any) {
|
||||
this.uploading = 'postToGallery'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue