mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-21 06:19:38 +08:00
Fix alerting
This commit is contained in:
parent
1f2d7a98ce
commit
bf479ad6a6
@ -61,7 +61,7 @@ export default {
|
||||
)
|
||||
this.pending = false
|
||||
if (errno === 0) {
|
||||
await this.$alert({ message: msg, type: 'success' })
|
||||
await this.$alert(msg)
|
||||
window.location.href = `${blessing.base_url}/user`
|
||||
} else {
|
||||
this.message = msg
|
||||
|
@ -35,5 +35,5 @@ test('submit', async () => {
|
||||
|
||||
form.trigger('submit')
|
||||
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