Ver código fonte

添加重复渲染的注释

Michael Wang 4 anos atrás
pai
commit
dc8df6b32e
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      src/features/mark/MarkBody.vue

+ 1 - 0
src/features/mark/MarkBody.vue

@@ -291,6 +291,7 @@ export default defineComponent({
     const renderPaperAndMark = async () => {
       if (__lock) {
         if (store.currentTask?.libraryId === __currentLibraryId) {
+          // rendering.value 会触发渲染,所以这里应取消。所以这里更好的做法是watch currentTask?
           console.log("重复渲染,返回");
           return;
         }