Browse Source

修改判断

lex 1 năm trước cách đây
mục cha
commit
116160dd2f
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/views/studentList/modals/comment-work/index.tsx

+ 2 - 1
src/views/studentList/modals/comment-work/index.tsx

@@ -42,7 +42,7 @@ export default defineComponent({
     });
     const onSubmit = async () => {
       const isCommentRemind = storage.get('isCommentRemind');
-      if (isCommentRemind != 1) {
+      if (isCommentRemind != 1 && state.commentRemind) {
         state.removeVisiable1 = true;
         return;
       }
@@ -64,6 +64,7 @@ export default defineComponent({
         //
       }
       state.btnLoading = false;
+      state.commentRemind = true;
     };
 
     const onSure = () => {