From f048496d730c096908aaadd40ae4ad695454bce2 Mon Sep 17 00:00:00 2001 From: fanxb Date: Wed, 30 Mar 2022 14:19:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E6=B3=A8=E5=86=8C?= =?UTF-8?q?=E8=BF=9B=E5=85=A5=E4=B8=BB=E9=A1=B5=E5=90=8E=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E6=9C=AA=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bookmark_front/src/views/public/register/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bookmark_front/src/views/public/register/index.vue b/bookmark_front/src/views/public/register/index.vue index 7ad8b20..619378c 100644 --- a/bookmark_front/src/views/public/register/index.vue +++ b/bookmark_front/src/views/public/register/index.vue @@ -81,12 +81,12 @@ export default { }; }, methods: { - submit() { + async submit() { let _this = this; this.$refs.registerForm.validate(async (status) => { if (status) { 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("/"); } });