瀏覽代碼

调整公众号并打包

yangg 8 月之前
父節點
當前提交
fc8c3e5dbc

+ 1 - 1
.env.development

@@ -2,5 +2,5 @@
 ENV = 'development'
 port = 8080
 # base api
-VUE_APP_BASE_API = 'http://192.168.1.200:8084'
+VUE_APP_BASE_API = 'http://58.246.234.210:8084'
 #192.168.1.200

File diff suppressed because it is too large
+ 0 - 0
dist/index.html


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/app.d3cbe7a3.css


+ 0 - 0
dist/static/css/chunk-27283076.775a21e3.css → dist/static/css/chunk-05d6d838.775a21e3.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/chunk-257b2231.8d17bcc4.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/chunk-cd009444.0f785ade.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.778d7a46.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.ec776c5c.js


File diff suppressed because it is too large
+ 1 - 1
dist/static/js/chunk-05d6d838.4d242ace.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-257b2231.2f3c001c.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-cd009444.ca7f2c29.js


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

@@ -111,7 +111,7 @@ export default {
                 phone: this.form.phone,
                 code: this.form.code,
               });
-
+              loginResult.data.phone=this.form.phone
               // 保存用户数据到本地存储
               this.saveUserData(loginResult);
 

+ 7 - 4
src/views/login/aiIndex.vue

@@ -112,9 +112,11 @@ export default {
         document: "",
       },
       currentChat_id:'',
+      phone:''
     };
   },
   mounted() {
+    localStorage.removeItem("AIData")
     this.checkAIData();
     if (this.$route.name == "ai") {
       /* 外部知识库 */
@@ -129,6 +131,7 @@ export default {
         if (AIData && AIData.data) {
           console.log(AIData);
           this.wsUrl = AIData.data.url || "";
+          this.phone=AIData.data.phone || ""
           this.tweaks = AIData.data.tweaks || {};
         } else {
           console.error("Invalid AIData structure");
@@ -322,7 +325,7 @@ export default {
               /* output_type: "chat",
               input_type: "chat", */
               chat_config_id:'3',//this.currentChat_id,
-              user_id: this.tweaks['Memory-KtRT7'].session_id,//this.tweaks.Memory-KtRT7.session_id,
+              user_id: this.phone,//this.tweaks.Memory-KtRT7.session_id,
               session_id: this.session_id || ""/* {
                 "ChatInput-U82Vu": {},
                 "Prompt-b8Z1E": {},
@@ -733,9 +736,9 @@ export default {
   max-width: 90%; /* 限制最大宽度,避免超出视口 */
   margin: 0 auto; /* 上下保持原有的 margin,左右自动调整以居中 */
   overflow-y: auto; /* 如果消息太多,允许滚动 */
-  height: calc(100vh - 230px); /* 高度需要根据输入框和其他元素的高度调整 */
+  height: calc(100vh - 130px); /* 高度需要根据输入框和其他元素的高度调整 */
   padding: 10px; /* 或你希望的内边距大小 */
-  margin-bottom: 120px;
+ /*  margin-bottom: 120px; */
 }
 /* 针对手机端的媒体查询 */
 @media screen and (max-width: 768px) {
@@ -743,7 +746,7 @@ export default {
     width: 100%;
     max-width: 100%;
     margin: 0;
-    margin-bottom: 120px;
+    /* margin-bottom: 120px; */
   }
 }
 .user-message {

Some files were not shown because too many files changed in this diff