lex 1 year ago
parent
commit
3259b0952d
4 changed files with 12 additions and 11 deletions
  1. 1 1
      dev-dist/sw.js
  2. 0 4
      index.html
  3. 1 1
      public/version.json
  4. 10 5
      src/views/studentList/modals/comment-work/index.tsx

+ 1 - 1
dev-dist/sw.js

@@ -82,7 +82,7 @@ define(['./workbox-5357ef54'], (function (workbox) { 'use strict';
     "revision": "3ca0b8505b4bec776b69afdba2768812"
   }, {
     "url": "index.html",
-    "revision": "0.mvanbje1bt"
+    "revision": "0.fdlfbk23pr8"
   }], {});
   workbox.cleanupOutdatedCaches();
   workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {

+ 0 - 4
index.html

@@ -190,11 +190,7 @@
           });
           // 尝试监听install
         }
-<<<<<<< Updated upstream
-
-=======
         console.log('index.html')
->>>>>>> Stashed changes
         window.location.reload();
       }
       // let refreshing = false

+ 1 - 1
public/version.json

@@ -1 +1 @@
-{"version":1708253355860}
+{ "version": 1708253355860 }

+ 10 - 5
src/views/studentList/modals/comment-work/index.tsx

@@ -41,11 +41,16 @@ export default defineComponent({
       commentRemind: true
     });
     const onSubmit = async () => {
-      // const isCommentRemind = storage.get('isCommentRemind');
-      // if (isCommentRemind != 1) {
-      //   state.removeVisiable1 = true;
-      //   return;
-      // }
+      const isCommentRemind = storage.get('isCommentRemind');
+      if (isCommentRemind != 1) {
+        state.removeVisiable1 = true;
+        return;
+      }
+
+      if (!state.comment) {
+        message.error('请输入评语');
+        return;
+      }
       state.btnLoading = true;
       try {
         await api_setComment({