ZhaoJing 1 år sedan
förälder
incheckning
6906480416
1 ändrade filer med 0 tillägg och 18 borttagningar
  1. 0 18
      src/pages/zbkc/detailIsLive.vue

+ 0 - 18
src/pages/zbkc/detailIsLive.vue

@@ -86,7 +86,6 @@ import ChatBlock from "./chat.vue";
 import homeworkBlock from "./homework.vue";
 import { useRoute, useRouter } from "vue-router";
 import { user } from '../../store/index';
-import mammoth from 'mammoth/mammoth.browser';
 import {
     chapter_detail,
     chapter_list,
@@ -316,23 +315,6 @@ function filePre(item) {
     console.log(item, 111111);
     dialogVisible = true;
     previewUrl = item;
-    getWordText(getFullUrl(item))
-}
-function getWordText(url) {
-    console.log(url);
-    const xhr = new XMLHttpRequest();
-    xhr.open("get", url, true);
-    xhr.responseType = "arraybuffer";
-    xhr.onload = () => {
-        if (xhr.status == 200) {
-            mammoth.convertToHtml({ arrayBuffer: new Uint8Array(xhr.response) }).then((resultObject) => {
-                nextTick(() => {
-                    wordText = resultObject.value;
-                });
-            });
-        }
-    };
-    xhr.send();
 }
 </script>