parent
518202ae0e
commit
175a80191e
@ -121,7 +121,7 @@ function submit() {
|
|||||||
if (radioType.value === 'default') {
|
if (radioType.value === 'default') {
|
||||||
application.asyncPutApplication(id as string, { icon: defaultIcon }, loading).then((res) => {
|
application.asyncPutApplication(id as string, { icon: defaultIcon }, loading).then((res) => {
|
||||||
emit('refresh')
|
emit('refresh')
|
||||||
MsgSuccess(t('views.applicationOverview.appInfo.EditAvatarDialog.setSuccess'))
|
MsgSuccess(t('common.saveSuccess'))
|
||||||
dialogVisible.value = false
|
dialogVisible.value = false
|
||||||
})
|
})
|
||||||
} else if (radioType.value === 'custom' && iconFile.value) {
|
} else if (radioType.value === 'custom' && iconFile.value) {
|
||||||
@ -129,7 +129,7 @@ function submit() {
|
|||||||
fd.append('file', iconFile.value.raw)
|
fd.append('file', iconFile.value.raw)
|
||||||
overviewApi.putAppIcon(id as string, fd, loading).then((res: any) => {
|
overviewApi.putAppIcon(id as string, fd, loading).then((res: any) => {
|
||||||
emit('refresh')
|
emit('refresh')
|
||||||
MsgSuccess(t('views.applicationOverview.appInfo.EditAvatarDialog.setSuccess'))
|
MsgSuccess(t('common.saveSuccess'))
|
||||||
dialogVisible.value = false
|
dialogVisible.value = false
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user