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 {
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 }}