瀏覽代碼

修改背景

xueyiming 1 周之前
父節點
當前提交
d5a4230293
共有 6 個文件被更改,包括 49 次插入48 次删除
  1. 1 1
      src/components/AppNavbar.vue
  2. 1 1
      src/views/KnowledgeBase.vue
  3. 1 1
      src/views/KnowledgeContent.vue
  4. 15 15
      src/views/QAndA.vue
  5. 15 15
      src/views/QAndAHistory.vue
  6. 16 15
      src/views/SearchPage.vue

+ 1 - 1
src/components/AppNavbar.vue

@@ -75,7 +75,7 @@ export default defineComponent({
 }
 
 .navbar-background {
-  background: linear-gradient(135deg, #667eea 0%, rgba(118, 75, 162, 0.88) 100%);
+  background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.7) 100%);
   backdrop-filter: blur(20px);
   border-bottom: 1px solid rgba(255, 255, 255, 0.1);
   box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);

+ 1 - 1
src/views/KnowledgeBase.vue

@@ -328,7 +328,7 @@ export default defineComponent({
 /* 基础样式 - 与RAG搜索页面保持一致 */
 .app-container {
   min-height: 100vh;
-  background: linear-gradient(135deg, rgba(102, 126, 234, 0.81) 0%, rgba(118, 75, 162, 0.77) 100%);
+  background: linear-gradient(135deg, rgba(102, 126, 234, 0.6) 0%, rgba(118, 75, 162, 0.4) 100%);
   font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
 }
 

+ 1 - 1
src/views/KnowledgeContent.vue

@@ -570,7 +570,7 @@ export default defineComponent({
 /* 基础样式 */
 .app-container {
   min-height: 100vh;
-  background: linear-gradient(135deg, rgba(102, 126, 234, 0.81) 0%, rgba(118, 75, 162, 0.77) 100%);
+  background: linear-gradient(135deg, rgba(102, 126, 234, 0.6) 0%, rgba(118, 75, 162, 0.4) 100%);
   font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
 }
 

+ 15 - 15
src/views/QAndA.vue

@@ -390,13 +390,13 @@
           <div v-show="activeTab === 'summary'" class="content-section summary-section">
             <div class="section-header">
               <h4>内容摘要</h4>
-              <el-button
-                  text
-                  class="copy-btn"
-                  @click="copyToClipboard(selectedResult.content)"
-              >
-                📋 复制内容
-              </el-button>
+<!--              <el-button-->
+<!--                  text-->
+<!--                  class="copy-btn"-->
+<!--                  @click="copyToClipboard(selectedResult.content)"-->
+<!--              >-->
+<!--                📋 复制内容-->
+<!--              </el-button>-->
             </div>
             <div class="summary-content">
               {{ selectedResult.content }}
@@ -406,13 +406,13 @@
           <div v-show="activeTab === 'original'" class="content-section original-section">
             <div class="section-header">
               <h4>完整原文</h4>
-              <el-button
-                  text
-                  class="copy-btn"
-                  @click="copyToClipboard(originalContent)"
-              >
-                📋 复制原文
-              </el-button>
+<!--              <el-button-->
+<!--                  text-->
+<!--                  class="copy-btn"-->
+<!--                  @click="copyToClipboard(originalContent)"-->
+<!--              >-->
+<!--                📋 复制原文-->
+<!--              </el-button>-->
             </div>
             <div class="original-content">
               <pre>{{ originalContent }}</pre>
@@ -636,7 +636,7 @@ onMounted(() => {
 /* 基础样式 */
 .app-container {
   min-height: 100vh;
-  background: linear-gradient(135deg, rgba(102, 126, 234, 0.81) 0%, rgba(118, 75, 162, 0.77) 100%);
+  background: linear-gradient(135deg, rgba(102, 126, 234, 0.6) 0%, rgba(118, 75, 162, 0.4) 100%);
   font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
 }
 

+ 15 - 15
src/views/QAndAHistory.vue

@@ -289,13 +289,13 @@
           <div v-show="activeTab === 'summary'" class="content-section summary-section">
             <div class="section-header">
               <h4>内容摘要</h4>
-              <el-button
-                  text
-                  class="copy-btn"
-                  @click="copyToClipboard(selectedResult.content)"
-              >
-                📋 复制内容
-              </el-button>
+<!--              <el-button-->
+<!--                  text-->
+<!--                  class="copy-btn"-->
+<!--                  @click="copyToClipboard(selectedResult.content)"-->
+<!--              >-->
+<!--                📋 复制内容-->
+<!--              </el-button>-->
             </div>
             <div class="summary-content">
               {{ selectedResult.content }}
@@ -305,13 +305,13 @@
           <div v-show="activeTab === 'original'" class="content-section original-section">
             <div class="section-header">
               <h4>完整原文</h4>
-              <el-button
-                  text
-                  class="copy-btn"
-                  @click="copyToClipboard(originalContent)"
-              >
-                📋 复制原文
-              </el-button>
+<!--              <el-button-->
+<!--                  text-->
+<!--                  class="copy-btn"-->
+<!--                  @click="copyToClipboard(originalContent)"-->
+<!--              >-->
+<!--                📋 复制原文-->
+<!--              </el-button>-->
             </div>
             <div class="original-content">
               <pre>{{ originalContent }}</pre>
@@ -558,7 +558,7 @@ onMounted(() => {
 /* 保持原有的所有样式不变 */
 .history-container {
   min-height: 100vh;
-  background: linear-gradient(135deg, rgba(102, 126, 234, 0.81) 0%, rgba(118, 75, 162, 0.77) 100%);
+  background: linear-gradient(135deg, rgba(102, 126, 234, 0.6) 0%, rgba(118, 75, 162, 0.4) 100%);
   font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
 }
 

+ 16 - 15
src/views/SearchPage.vue

@@ -258,13 +258,13 @@
           <div v-show="activeTab === 'summary'" class="content-section summary-section">
             <div class="section-header">
               <h4>内容摘要</h4>
-              <el-button
-                  text
-                  class="copy-btn"
-                  @click="copyToClipboard(selectedResult.content)"
-              >
-                📋 复制内容
-              </el-button>
+<!--              <el-button-->
+<!--                  text-->
+<!--                  class="copy-btn"-->
+<!--                  @click="copyToClipboard(selectedResult.content)"-->
+<!--              >-->
+<!--                📋 复制内容-->
+<!--              </el-button>-->
             </div>
             <div class="summary-content">
               {{ selectedResult.content }}
@@ -274,13 +274,13 @@
           <div v-show="activeTab === 'original'" class="content-section original-section">
             <div class="section-header">
               <h4>完整原文</h4>
-              <el-button
-                  text
-                  class="copy-btn"
-                  @click="copyToClipboard(originalContent)"
-              >
-                📋 复制原文
-              </el-button>
+<!--              <el-button-->
+<!--                  text-->
+<!--                  class="copy-btn"-->
+<!--                  @click="copyToClipboard(originalContent)"-->
+<!--              >-->
+<!--                📋 复制原文-->
+<!--              </el-button>-->
             </div>
             <div class="original-content">
               <pre>{{ originalContent }}</pre>
@@ -357,6 +357,7 @@ const copyToClipboard = async (text) => {
     await navigator.clipboard.writeText(text);
     ElMessage.success('已复制到剪贴板');
   } catch (err) {
+    console.log(err)
     ElMessage.error('复制失败');
   }
 };
@@ -440,7 +441,7 @@ onMounted(() => {
 /* 基础样式 */
 .app-container {
   min-height: 100vh;
-  background: linear-gradient(135deg, rgba(102, 126, 234, 0.81) 0%, rgba(118, 75, 162, 0.77) 100%);
+  background: linear-gradient(135deg, rgba(102, 126, 234, 0.6) 0%, rgba(118, 75, 162, 0.4) 100%);
   font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
 }