panhui %!s(int64=4) %!d(string=hai) anos
pai
achega
a93e5f877a
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      src/views/Givesubmit.vue

+ 6 - 1
src/views/Givesubmit.vue

@@ -215,6 +215,11 @@ export default {
                 return;
                 return;
             }
             }
 
 
+            if (!this.password) {
+                this.$toast('请输入密码');
+                return;
+            }
+
             this.$toast.loading({
             this.$toast.loading({
                 message: '加载中...',
                 message: '加载中...',
                 forbidClick: true
                 forbidClick: true
@@ -263,7 +268,7 @@ export default {
                 })
                 })
                 .catch(e => {
                 .catch(e => {
                     if (e) {
                     if (e) {
-                        this.$toast('失败点击忘记密码进行修改');
+                        this.$toast(e.error);
                     }
                     }
                 });
                 });
         },
         },