Explorar o código

重新渲染描红

natasha %!s(int64=2) %!d(string=hai) anos
pai
achega
be6f630d33
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/views/wordcard/writeTable.vue

+ 4 - 0
src/views/wordcard/writeTable.vue

@@ -5,6 +5,7 @@
             <div class="writeTop-item" :class="[indexI!==0?'writeTop-item-noLeft':'']" v-for="(itemI,indexI) in itemR" :key="indexI" :style="{width:dataConfig.width,height:dataConfig.width,borderColor:dataConfig.borderColor}">
                 <template v-if="itemI&&itemI.con&&!itemI.write&&!itemI.answer">
                     <Strockplay
+                        v-if="'writeTop-item-' + pageNumber + '-' + indexR + '-' + indexI"
                         className="adult-strockplay"
                         :strokePlayColor="dataConfig.borderColor"
                         :Book_text="itemI.con"
@@ -17,6 +18,8 @@
                 </template>
                 <template v-else-if="itemI&&itemI.answer">
                     <Strockplayredline
+                        v-if="'write-item-miaohong-' +
+                            pageNumber + '-' + indexR + '-' + indexI + Math.random().toString(36).substr(2)"
                         :Book_text="itemI.con"
                         :playStorkes="false"
                         :strokeColorgray="dataConfig.miaoRedBgcolor"
@@ -34,6 +37,7 @@
                 </template>
                 <template v-else-if="itemI&&itemI.miaoRed">
                     <Strockred
+                        v-if="'write-item-' + pageNumber + '-' + indexR + '-' + indexI + Math.random().toString(36).substr(2)"
                         className="adult-strockplay"
                         :strokePlayColor="dataConfig.borderColor"
                         :Book_text="itemI.con"