Pārlūkot izejas kodu

修改文档预览

yangg 8 mēneši atpakaļ
vecāks
revīzija
5b20fa39dc

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/index.html


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/static/css/app.b9d9ec57.css


+ 1 - 0
dist/static/css/chunk-4d4d84bc.8479d7a3.css

@@ -0,0 +1 @@
+[data-v-7dfc5ed1] .chat-container{height:100vh}[data-v-7dfc5ed1] .messages{margin-bottom:0;height:calc(100vh - 120px)}[data-v-7dfc5ed1] .input-container{max-width:1200px}

+ 0 - 1
dist/static/css/chunk-59cff762.937bf34d.css

@@ -1 +0,0 @@
-[data-v-182bcb9c] .chat-container{height:100vh}[data-v-182bcb9c] .messages{margin-bottom:0;height:calc(100vh - 120px)}[data-v-182bcb9c] .input-container{max-width:1200px}

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/static/js/app.8c4f1eab.js


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/static/js/app.d88323ba.js


+ 1 - 0
dist/static/js/chunk-4d4d84bc.a416a7b0.js

@@ -0,0 +1 @@
+(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4d4d84bc"],{"12c2":function(n,t,o){},"14df":function(n,t,o){"use strict";o("12c2")},c8cf:function(n,t,o){"use strict";o.r(t);var c=function(){var n=this,t=n.$createElement,o=n._self._c||t;return o("div",[o("ChatBox")],1)},e=[],a=o("c3b3"),d=o("ecd9"),i={components:{ChatBox:a["default"],LoginModal:d["default"]},data:function(){return{showLoginModal:!1}},mounted:function(){},methods:{checkAIData:function(){var n=localStorage.getItem("AIData");this.showLoginModal=!n},handleLoginSuccess:function(){this.showLoginModal=!1}}},u=i,s=(o("14df"),o("2877")),f=Object(s["a"])(u,c,e,!1,null,"7dfc5ed1",null);t["default"]=f.exports}}]);

+ 0 - 1
dist/static/js/chunk-59cff762.1daf2cd6.js

@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-59cff762"],{3369:function(o,n,t){"use strict";t("b89d")},b89d:function(o,n,t){},c8cf:function(o,n,t){"use strict";t.r(n);var c=function(){var o=this,n=o.$createElement,t=o._self._c||n;return t("div",[t("ChatBox"),t("LoginModal",{attrs:{visible:o.showLoginModal},on:{"update:visible":function(n){o.showLoginModal=n},close:function(n){o.showLoginModal=!1},"login-success":o.handleLoginSuccess}})],1)},a=[],e=t("c3b3"),i=t("ecd9"),s={components:{ChatBox:e["default"],LoginModal:i["default"]},data:function(){return{showLoginModal:!1}},mounted:function(){this.checkAIData()},methods:{checkAIData:function(){var o=localStorage.getItem("AIData");this.showLoginModal=!o},handleLoginSuccess:function(){this.showLoginModal=!1}}},u=s,l=(t("3369"),t("2877")),d=Object(l["a"])(u,c,a,!1,null,"182bcb9c",null);n["default"]=d.exports}}]);

+ 1 - 1
src/components/FilePreview/index.vue

@@ -114,7 +114,7 @@ export default {
     async loadWordContent() {
       this.wordLoaded = false;
       this.wordLoadingError = false;
-
+      this.fileUrl=localStorage.getItem('href')
       try {
         const response = await fetch(this.fileUrl);
         if (!response.ok) {

+ 1 - 1
src/components/webAi/js/ChatBox.js

@@ -90,7 +90,7 @@ newChat() {
 
     handleLinkClick(event) {
       if (event.target.tagName === 'A') {
-        sessionStorage.setItem('href',event.target.href)
+        localStorage.setItem('href',event.target.href)
         let _this = this;
         let a = document.createElement("a");
         a.href = "#/preview"; // 使用 hash

+ 3 - 3
src/views/chatPage/index.vue

@@ -1,11 +1,11 @@
 <template>
     <div>
       <ChatBox />
-      <LoginModal
+      <!-- <LoginModal
         :visible.sync="showLoginModal"
         @close="showLoginModal = false"
         @login-success="handleLoginSuccess"
-      />
+      /> -->
     </div>
   </template>
   
@@ -24,7 +24,7 @@
       };
     },
     mounted() {
-      this.checkAIData();
+      //this.checkAIData();
     },
     methods: {
       checkAIData() {

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels