瀏覽代碼

修改判断

lex 1 年之前
父節點
當前提交
116160dd2f
共有 1 個文件被更改,包括 2 次插入1 次删除
  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 = () => {