Browse Source

温州和省厅替换

songxy 2 tháng trước cách đây
mục cha
commit
4d9e2793e3

+ 1 - 2
ais_search_zj/web/src/App.vue

@@ -12,7 +12,6 @@
 import { RouterView } from 'vue-router';
 import { onBeforeMount, ref } from 'vue';
 import http from "@/utils/http";
-import authHttp from "@/utils/auth-api";
 
 import zhCN from 'ant-design-vue/es/locale/zh_CN';
 import dayjs from 'dayjs';
@@ -78,7 +77,7 @@ const getCommonToken = async () => {
   if (!ticketStr.value) { return }
   const urlApi = `/auth/ticket`
   var p = { ticket: ticketStr.value };
-  authHttp.get(urlApi, p, this, false).then(async (resultData) => {
+  http.get(urlApi, p, this, false).then(async (resultData) => {
     if (!resultData || resultData['error_code']) {
       message.error('用户不合法,请核实用户信息!')
       foundHandle()

+ 7 - 7
ais_search_zj/web/src/views/ai-home/index.vue

@@ -264,20 +264,20 @@
                         <a-dropdown>
                           <template #overlay>
                             <a-menu @click="({key})=>onChange(key)">
-                              <a-menu-item key="1">
-                                <div :class="{tool_1: true, active: modelType === '1'}">
+                              <a-menu-item key="0">
+                                <div :class="{tool_1: true, active: modelType === '0'}">
                                   DeepSeek
                                 </div>
                               </a-menu-item>
-                              <a-menu-item key="0">
-                                <div :class="{tool_1: true, active: modelType === '0'}">
+                              <a-menu-item key="1">
+                                <div :class="{tool_1: true, active: modelType === '1'}">
                                   通义千问
                                 </div>
                               </a-menu-item>
                             </a-menu>
                           </template>
                           <a-button style="width: 120px">
-                            {{ modelType === '1' ? 'DeepSeek' : '通义千问'}}
+                            {{ modelType === '0' ? 'DeepSeek' : '通义千问'}}
                             <DownOutlined />
                           </a-button>
                         </a-dropdown>
@@ -476,7 +476,7 @@ const indicator = h(LoadingOutlined, {
   spin: true
 });
 
-const modelType = ref('1')
+const modelType = ref('0')
 const answerType = ref('0');
 
 const question = ref('国有土地的使用方式有哪些?');
@@ -694,7 +694,7 @@ const quest = async (isFllow) => {
     body = {
       query: question.value,
       stream: true,
-      model: modelType.value === '1' ? 'deepseek-r1' : '',
+      model: modelType.value === '0' ? 'deepseek-r1' : '',
       search_type: answerType.value
     }
   } else if(activeTab.value === 'knowledge'){

+ 7 - 7
ais_search_zj/web/src/views/ai-search/index.vue

@@ -326,20 +326,20 @@
                   <a-dropdown>
                     <template #overlay>
                       <a-menu @click="({key})=>onChange(key)">
-                        <a-menu-item key="1">
-                          <div :class="{tool_1: true, active: modelType === '1'}">
+                        <a-menu-item key="0">
+                          <div :class="{tool_1: true, active: modelType === '0'}">
                             DeepSeek
                           </div>
                         </a-menu-item>
-                        <a-menu-item key="0">
-                          <div :class="{tool_1: true, active: modelType === '0'}">
+                        <a-menu-item key="1">
+                          <div :class="{tool_1: true, active: modelType === '1'}">
                             通义千问
                           </div>
                         </a-menu-item>
                       </a-menu>
                     </template>
                     <a-button style="width: 120px">
-                      {{ modelType === '1' ? 'DeepSeek' : '通义千问'}}
+                      {{ modelType === '0' ? 'DeepSeek' : '通义千问'}}
                       <DownOutlined />
                     </a-button>
                   </a-dropdown>
@@ -502,7 +502,7 @@ const indicator = h(LoadingOutlined, {
   spin: true
 });
 
-const modelType = ref('1')
+const modelType = ref('0')
 const answerType = ref('0');
 
 const question = ref('国有土地的使用方式有哪些?');
@@ -703,7 +703,7 @@ const quest = async (isFllow) => {
     body = {
       query: question.value,
       stream: true,
-      model: modelType.value === '1' ? 'deepseek-r1' : '',
+      model: modelType.value === '0' ? 'deepseek-r1' : '',
       search_type: answerType.value
     }
   } else if(activeTab.value === 'knowledge'){