CzRger 4 nap óta
szülő
commit
dcc17f508d

+ 1 - 1
src/out/config.js

@@ -1,6 +1,6 @@
 window.czrConfig = {
 window.czrConfig = {
   menuLayout: 'top-left', //  'left'-左侧,'top-left'-顶部左侧
   menuLayout: 'top-left', //  'left'-左侧,'top-left'-顶部左侧
   dify: {
   dify: {
-    appId: '86945884-adf3-4e22-91b2-e48c38b44e9e'
+    appId: 'b9aca5c8-f0bb-4313-965f-3375d7a55579'
   }
   }
 }
 }

+ 2 - 6
src/views/smart-ask-answer/assistant/chat.vue

@@ -73,12 +73,7 @@ const state: any = reactive({
     inputs: {},
     inputs: {},
     parent_message_id: null
     parent_message_id: null
   },
   },
-  chats: [
-    {
-      type: 'answer',
-      welcome: true,
-    },
-  ],
+  chats: [],
   goodMap: new Map(),
   goodMap: new Map(),
   badMap: new Map(),
   badMap: new Map(),
   autoList: []
   autoList: []
@@ -161,6 +156,7 @@ const initChat = () => {
         {
         {
           type: 'answer',
           type: 'answer',
           welcome: true,
           welcome: true,
+          content: res.opening_statement
         },
         },
       ]
       ]
     }
     }

+ 1 - 1
src/views/smart-ask-answer/assistant/component/answer/index.vue

@@ -4,7 +4,7 @@
       <img src="@/views/smart-ask-answer/assistant/imgs/avatar.png"/>
       <img src="@/views/smart-ask-answer/assistant/imgs/avatar.png"/>
     </div>
     </div>
     <div class="answer-content">
     <div class="answer-content">
-      <template v-if="item.welcome">下午好,i口岸智行官为您服务,有什么可以帮您?</template>
+      <template v-if="item.welcome">{{ item.content }}</template>
       <template v-else>
       <template v-else>
         <template v-for="part in contentCpt">
         <template v-for="part in contentCpt">
           <template v-if="part.type === 'think'">
           <template v-if="part.type === 'think'">