mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2025-03-07 15:16:40 +08:00
Fix alerting
This commit is contained in:
parent
1f2d7a98ce
commit
bf479ad6a6
@ -61,7 +61,7 @@ export default {
|
|||||||
)
|
)
|
||||||
this.pending = false
|
this.pending = false
|
||||||
if (errno === 0) {
|
if (errno === 0) {
|
||||||
await this.$alert({ message: msg, type: 'success' })
|
await this.$alert(msg)
|
||||||
window.location.href = `${blessing.base_url}/user`
|
window.location.href = `${blessing.base_url}/user`
|
||||||
} else {
|
} else {
|
||||||
this.message = msg
|
this.message = msg
|
||||||
|
@ -35,5 +35,5 @@ test('submit', async () => {
|
|||||||
|
|
||||||
form.trigger('submit')
|
form.trigger('submit')
|
||||||
await wrapper.vm.$nextTick()
|
await wrapper.vm.$nextTick()
|
||||||
expect(Vue.prototype.$alert).toBeCalledWith({ message: 'ok', type: 'success' })
|
expect(Vue.prototype.$alert).toBeCalledWith('ok')
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user