mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-01 03:37:46 +08:00
fix ui createToken submit error.
This commit is contained in:
parent
829fdb52c1
commit
d203cba988
@ -119,16 +119,16 @@
|
||||
if (this.item) {
|
||||
param.id = this.item.id
|
||||
}
|
||||
this.$refs.popup.spinnerLoading = true
|
||||
this.$refs.popover.spinnerLoading = true
|
||||
this.store.dispatch(`user/${this.item ? 'updateToken' : 'createToken'}`, param).then(res => {
|
||||
this.$emit('onUpdate')
|
||||
this.$message.success(res.msg)
|
||||
setTimeout(() => {
|
||||
this.$refs.popup.spinnerLoading = false
|
||||
this.$refs.popover.spinnerLoading = false
|
||||
}, 800)
|
||||
}).catch(e => {
|
||||
this.$message.error(e.msg || '')
|
||||
this.$refs.popup.spinnerLoading = false
|
||||
this.$refs.popover.spinnerLoading = false
|
||||
})
|
||||
},
|
||||
_generateToken () {
|
||||
|
Loading…
Reference in New Issue
Block a user