Commit 6f2230e0 by 杨明

fixed

1 parent 66d415b2
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-05-16 17:13:33
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-05-30 16:58:01
* @LastEditTime: 2023-05-30 17:14:49
* @FilePath: \scrm-micro-home\src\store\modules\marketing.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -94,11 +94,9 @@ export default {
setKeyWords({ commit, state }, data) {
if (state.keywords == data) return
commit('SET_KET_WORDs', data)
setTimeout(() => {
commit('SET_KET_WORDs', '')
}, 1000);
apis.activity.getChatGPTList({ 'req.userPrompt': data }).then(res => {
const gptList = JSON.parse(res.message)
commit('SET_KET_WORDs', '')
if (gptList.mainTitles) {
commit('SET_GPT_LIST', gptList)
}
......
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2023-05-16 10:20:01
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-05-30 17:00:21
* @LastEditTime: 2023-05-30 17:09:12
* @FilePath: \scrm-micro-home\src\views\home\components\Marketing\ChatGPT.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -97,8 +97,8 @@ export default {
})
},
activityInfo(val) {
this.chatItem = []
if (!val) return
if (!this.keywords) this.chatItem = []
}
},
methods: {
......
......@@ -410,7 +410,7 @@ export default {
},
componentsName: 'analysis',
computed: {
...mapState('marketing', ['activityInfo', 'GPTList', 'merchantInfo','keywords']),
...mapState('marketing', ['activityInfo', 'GPTList', 'merchantInfo', 'keywords']),
mergeStr() {
const { backgroundImage, detailImage, merchantLog, mainColor, logoInfo, marketingTitle, marketingSubtitle, templateId } = this.editForm
return [backgroundImage, detailImage, merchantLog, mainColor, logoInfo, marketingTitle, marketingSubtitle, templateId]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!