whx 10 小时之前
父节点
当前提交
d055ed5d95

+ 3 - 3
virgo.wzfrontend/aiChat/src/components/AIFlowChat.vue

@@ -134,7 +134,7 @@
 					"Content-Type": "application/json",
 					"token": useUserStore().token
 				},
-				timeout: 1200000000, // 超时
+				timeout: 1200000000000000, // 超时
 				openWhenHidden: true,
 				body: JSON.stringify({
 					query: userMessage,
@@ -280,8 +280,8 @@
 					:autosize="{ minRows: 2, maxRows: 6 }">
 				</el-input>
 				<div class="input-button">
-					<el-button style="margin-left: 10px;" size="default" :icon="Plus" :disabled="loading" circle
-						@click="selectVisible = true">
+					<el-button style="margin-left: 10px;" size="default" :icon="Plus" :disabled="loading || !previewUrl"
+						circle @click="selectVisible = true">
 					</el-button>
 					<el-button circle type="primary" @click="sendMessage" :disabled="!prompt.trim() || loading"
 						:icon="Top">

+ 25 - 9
virgo.wzfrontend/aiChat/src/views/Home.vue

@@ -282,7 +282,10 @@
 				adaptive: false
 			},
 		}],
-	})
+	})
+	const linTo = (url) => {
+		window.open(url)
+	}
 </script>
 
 <template>
@@ -301,13 +304,14 @@
 				</ul>
 			</div>
 			<div class="home-nav-right">
-				<div class="item no-token" v-if="!user.userId">
-					<el-button size="default" @click="loginVisible = true">
-						登录
-					</el-button>
-				</div>
-				<el-dropdown v-else @command="commandFunction" :popper-options="dropOption">
-					<div class="item no-token">
+				<el-button class="item no-token" v-if="!user.userId" size="default" @click="loginVisible = true">
+					登录
+				</el-button>
+				<el-button class="item" type="primary" size="default" @click="linTo('https://www.workark.com/workark/index.html')">
+					WorkArk
+				</el-button>
+				<el-dropdown v-if="user.userId" @command="commandFunction" :popper-options="dropOption">
+					<div class="item">
 						<el-avatar :size="36" :src="user.portrait"></el-avatar>
 						<span class="name">{{user.userName}}</span>
 					</div>
@@ -358,7 +362,7 @@
 				</div>
 			</div>
 		</div>
-		<el-dialog v-model="loginVisible" title="登录" width="440px">
+		<el-dialog v-model="loginVisible" title="登录" width="440px" :close-on-click-modal="false">
 			<login v-if="loginVisible" @callback="callback"></login>
 		</el-dialog>
 		<el-dialog v-model="selectVisible" title="选项" width="800px" class="ai-dialog select-dialog">
@@ -444,13 +448,25 @@
 			}
 
 			.home-nav-right {
+				display: flex;
+				align-items: center;
+
 				.item {
 					display: flex;
 					align-items: center;
+					margin-left: 15px;
+				}
+
+				.el-button span {
+					font-weight: bold;
 				}
 
 				.no-token {
 					cursor: pointer;
+
+					&.el-button--default {
+						color: rgb(28, 28, 28);
+					}
 				}
 
 				.name {

文件差异内容过多而无法显示
+ 1 - 1
virgo.wzfrontend/src/main/resources/static/ai/assets/AIChat-B1zDvzLB.css


文件差异内容过多而无法显示
+ 2 - 2
virgo.wzfrontend/src/main/resources/static/ai/assets/AIChat-C2buUlF5.js


文件差异内容过多而无法显示
+ 1 - 1
virgo.wzfrontend/src/main/resources/static/ai/assets/Chats-Dt0bZ_hC.js


文件差异内容过多而无法显示
+ 0 - 1
virgo.wzfrontend/src/main/resources/static/ai/assets/Home-BvpQB4Mu.js


文件差异内容过多而无法显示
+ 1 - 1
virgo.wzfrontend/src/main/resources/static/ai/assets/Home-BTYMWuJa.css


文件差异内容过多而无法显示
+ 1 - 0
virgo.wzfrontend/src/main/resources/static/ai/assets/Home-CY6IJPEJ.js


文件差异内容过多而无法显示
+ 1 - 1
virgo.wzfrontend/src/main/resources/static/ai/assets/ai-DcM6uBZj.js


文件差异内容过多而无法显示
+ 2 - 2
virgo.wzfrontend/src/main/resources/static/ai/assets/index-BKrnkg6r.js


+ 1 - 1
virgo.wzfrontend/src/main/resources/static/ai/index.html

@@ -5,7 +5,7 @@
 		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
 		<link rel="icon" href="https://file-node.oss-cn-shanghai.aliyuncs.com/youji/f9617c7f80da485cb3cc72b6accc62ed">
 		<title>WorkArk AI</title>

-		<script type="module" crossorigin src="./assets/index-BKrnkg6r.js"></script>
+		<script type="module" crossorigin src="./assets/index-DNVrj-bw.js"></script>
 		<link rel="stylesheet" crossorigin href="./assets/index-95H28FZP.css">
 	</head>
 	<body>