Bladeren bron

单文档预览

yinbangzhong 2 jaren geleden
bovenliggende
commit
f3b3664e87

+ 0 - 1
src/views/dmx/knowledgeLib/components/Pdf.vue

@@ -13,7 +13,6 @@
   });
   //引入VueOfficeExcel组件相关
   import VueOfficePdf from '@vue-office/pdf';
-  import '@vue-office/excel/lib/index.css';
 
   const comStyle = {
     width: '100%',

+ 0 - 2
src/views/dmx/knowledgeLib/components/txt.vue

@@ -26,8 +26,6 @@ const getContent = (url) => {
 };
 getContent(props.previewSrc);
 
-//引入VueOfficeExcel组件相关
-import "@vue-office/excel/lib/index.css";
 
 const comStyle = {
   width: "100%",

+ 2 - 2
src/views/sessionManager/index.vue

@@ -485,7 +485,7 @@
     <a-modal title=" " v-model:visible="fileVisible" :footer="false" fullscreen>
       <!--      <docx  previewSrc="http://192.168.20.116:1080/v1/document/get/405c3efa4d8c11ef97560242ac120006"></docx>-->
       <docx v-if="documenttype == 'docx'" :previewSrc="previewSrc"></docx>
-      <excel v-if="documenttype == 'excel'" :previewSrc="previewSrc"></excel>
+      <excel v-if="documenttype == 'xlsx'" :previewSrc="previewSrc"></excel>
       <Pdf v-if="documenttype == 'pdf'" :previewSrc="previewSrc"></Pdf>
       <txt v-if="documenttype == 'txt'" :previewSrc="previewSrc"></txt>
     </a-modal>
@@ -922,7 +922,7 @@
     console.log(name, '新建会话名称');
 
     const res = await addSessionApi({
-      dialog_id: '',
+      dialog_id: id,
       conversation_desc: name,
     });
     // console.log(res, "res");