页面跳转添加loading,添加全局loading
This commit is contained in:
@@ -553,13 +553,14 @@ export default defineComponent({
|
||||
loginType: "EMAIL",
|
||||
userId: this.userId,
|
||||
};
|
||||
this.$emit('update:isMask',true)
|
||||
this.store.commit('set_loading', true)
|
||||
Https.axiosPost(Https.httpUrls.accountLogin, data)
|
||||
.then((rv: any) => {
|
||||
this.setSuccessLogin(rv);
|
||||
this.setSuccessLogin(rv);
|
||||
this.store.commit('set_loading', false)
|
||||
})
|
||||
.catch((res) => {
|
||||
this.$emit('update:isMask',false)
|
||||
this.store.commit('set_loading', false)
|
||||
});
|
||||
},1000)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user