inputId;
      switch (type) {
        case 'newEn':
          inputId = 'newEnFile';
          break;
        case 'oldZh':
          inputId = 'oldZhFile';
          break;
        case 'oldEN':
          inputId = 'oldEnFile';
          break;
      }
      const fileInput = document.getElementById(inputId);
      if (!fileInput.files[0]) {
        this.errorMsg = '未选择文件';
        return;
      }

      const reader = new FileReader();
      reader.onload = e => {
        const rawText = e.targ