gemercheung 1 سال پیش
والد
کامیت
d85823a8ae
5فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. BIN
      public/img/subtitle_1.png
  2. BIN
      public/img/subtitle_2.png
  3. BIN
      public/img/subtitle_3.png
  4. BIN
      public/img/subtitle_4.png
  5. 4 2
      src/views/feedback.vue

BIN
public/img/subtitle_1.png


BIN
public/img/subtitle_2.png


BIN
public/img/subtitle_3.png


BIN
public/img/subtitle_4.png


+ 4 - 2
src/views/feedback.vue

@@ -12,6 +12,8 @@
               v-model:value="feedBackContent"
               type="textarea"
               autosize
+              maxlength="500"
+              minlength="5"
               placeholder="请填入内容,5-500字"
               style="min-height: 25rem"
             />
@@ -46,7 +48,7 @@
                 class="submit"
                 size="large"
                 :disabled="
-                  feedBackContent.length === 0 ||
+                  feedBackContent.length < 5 ||
                   nickName.length === 0 ||
                   contact.length === 0 ||
                   verifyCode.length === 0
@@ -99,7 +101,7 @@ const submit = async () => {
     console.log("res", res);
     if (res.isOK) {
       window.$message.success("提交成功!");
-      router.go(-1);
+      // router.go(-1);
     } else {
       window.$message.warning(res.msg);
     }