Merge branch 'dev' of fanxb/bookmark into master

This commit is contained in:
fanxb 2022-03-30 14:21:06 +08:00 committed by Gogs
commit 14b3c6da2f

View File

@ -81,12 +81,12 @@ export default {
}; };
}, },
methods: { methods: {
submit() { async submit() {
let _this = this; let _this = this;
this.$refs.registerForm.validate(async (status) => { this.$refs.registerForm.validate(async (status) => {
if (status) { if (status) {
let res = await httpUtil.put("/user", null, _this.form); let res = await httpUtil.put("/user", null, _this.form);
this.$store.dispatch("globalConfig/setToken", res); await this.$store.dispatch("globalConfig/setToken", res);
this.$router.replace("/"); this.$router.replace("/");
} }
}); });