From ea20be605837b340d56cd2510f10d3717cd1808e Mon Sep 17 00:00:00 2001 From: heshunme Date: Mon, 1 Jul 2024 20:16:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=85=A8=E9=87=8D=E5=86=99=E4=BA=86?= =?UTF-8?q?=E5=90=8E=E7=AB=AF=EF=BC=8C=E7=8E=B0=E5=9C=A8commit=E4=B8=80?= =?UTF-8?q?=E4=B8=8B=E4=BB=A5=E5=89=8D=E7=9A=84=E6=9B=B4=E6=94=B9=EF=BC=8C?= =?UTF-8?q?=E5=BC=80=E5=A7=8B=E5=85=A8=E6=96=B0=E7=9A=84=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/authentication.js | 20 +++++----- src/views/authentication/Register.vue | 57 ++++++++++++++++++++++----- 2 files changed, 57 insertions(+), 20 deletions(-) diff --git a/src/store/authentication.js b/src/store/authentication.js index 6e953a5..8d7e12e 100644 --- a/src/store/authentication.js +++ b/src/store/authentication.js @@ -1,19 +1,19 @@ import axios from 'axios'; const state = { - user: null, - isAuthenticated: false, + user: null, + isAuthenticated: false, }; const mutations = { - setUser(state, user) { - state.user = user; - state.isAuthenticated = true; - }, - clearUser(state) { - state.user = null; - state.isAuthenticated = false; - }, + setUser(state, user) { + state.user = user; + state.isAuthenticated = true; + }, + clearUser(state) { + state.user = null; + state.isAuthenticated = false; + }, }; const actions = { diff --git a/src/views/authentication/Register.vue b/src/views/authentication/Register.vue index df976ba..7c5f75f 100644 --- a/src/views/authentication/Register.vue +++ b/src/views/authentication/Register.vue @@ -1,21 +1,58 @@ @@ -26,15 +63,15 @@ const sendVerificationCode = () => { - + - + - +