From 64fcc7c669b6c950352dc43aa74a0cedf696d157 Mon Sep 17 00:00:00 2001 From: wangqing Date: Wed, 7 Apr 2021 11:26:26 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E4=BB=A3=E7=A0=81=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/form/write.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/form/write.vue b/src/views/form/write.vue index 85b25c1..ee74ffa 100644 --- a/src/views/form/write.vue +++ b/src/views/form/write.vue @@ -17,7 +17,7 @@
- +

{{ userProjectSetting.submitPromptText }} From e6e966250a89e3c43441b04940185c82c72e5247 Mon Sep 17 00:00:00 2001 From: wangqing <250543222@qq.com> Date: Wed, 7 Apr 2021 23:13:54 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9=E9=82=AE?= =?UTF-8?q?=E4=BB=B6=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/modules/root.js | 2 +- src/views/account/validate.vue | 20 +++++++++++++++----- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/src/router/modules/root.js b/src/router/modules/root.js index b2a5e21..29fdc62 100644 --- a/src/router/modules/root.js +++ b/src/router/modules/root.js @@ -11,7 +11,7 @@ export default [ }, { path: '/account/validate', - meta: {requireLogin: true}, + meta: {requireLogin: false}, component: () => import(/* webpackChunkName: 'root' */ '@/views/account/validate') }, { diff --git a/src/views/account/validate.vue b/src/views/account/validate.vue index d62af01..cf367e1 100644 --- a/src/views/account/validate.vue +++ b/src/views/account/validate.vue @@ -11,6 +11,17 @@ /> 返回首页

+
+ + 返回首页 +
@@ -22,7 +33,7 @@ export default { name: 'Redirect', data() { return { - bindEmailErr: '' + bindEmailErr: true } }, created() { @@ -32,9 +43,7 @@ export default { let code = this.$route.query.code let email = this.$route.query.email this.$api.post('/user/update/email', {email: email, key: code}).then(res => { - if (!res.data) { - this.bindEmailErr = true - } + this.bindEmailErr = !res.data }) } }, @@ -52,7 +61,8 @@ export default { justify-items: center; align-items: center; } -.el-alert--error.is-light { +.el-alert--error.is-light, +.el-alert--success.is-light { background-color: transparent; } .el-alert {