Explorar o código

描红田字格不显示问题

qinpeng %!s(int64=2) %!d(string=hai) anos
pai
achega
f73cbe8d02
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/components/corpus/Strockred.vue

+ 3 - 1
src/components/corpus/Strockred.vue

@@ -71,7 +71,9 @@ export default {
     initHanziwrite() {
       let _this = this;
       let node = document.getElementById(`${_this.targetDiv}`);
-      node.removeChild(node.children[0]);
+      if (node.children.length > 1) {
+        node.removeChild(node.children[1]);
+      }
       let options = {
         charDataLoader: function (char, onComplete) {
           let MethodName = "hz_resource_manager-GetHZStrokesContent";