|
|
|
|
@ -102,7 +102,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
that.timer = setInterval(() => {
|
|
|
|
|
that.defaultPercent = that.defaultPercent < 15 ? (that.defaultPercent = 15) : that.defaultPercent + 1
|
|
|
|
|
console.log('12313123123123123')
|
|
|
|
|
// console.log('12313123123123123')
|
|
|
|
|
if (that.defaultPercent >= 99) {
|
|
|
|
|
clearInterval(that.timer)
|
|
|
|
|
}
|
|
|
|
|
@ -111,7 +111,7 @@ export default {
|
|
|
|
|
console.log('5687678678678678678')
|
|
|
|
|
that.ailoading = false
|
|
|
|
|
clearInterval(that.timer)
|
|
|
|
|
setLoading()
|
|
|
|
|
// setLoading()
|
|
|
|
|
}, 30000)
|
|
|
|
|
this.appCoze()
|
|
|
|
|
},
|
|
|
|
|
@ -126,17 +126,19 @@ export default {
|
|
|
|
|
url: 'https://api.coze.cn/v1/workflow/stream_run',
|
|
|
|
|
// 请求头
|
|
|
|
|
headers: {
|
|
|
|
|
Authorization: 'Bearer ' + that.aiConfig.token,
|
|
|
|
|
'Content-Type': 'application/json;charset=UTF-8',
|
|
|
|
|
// that.aiConfig.token
|
|
|
|
|
Authorization: 'Bearer ' + 'pat_cHNGkdbe3VRsmpMUXCNbZVt1ltDVyCI8k2bt9soIm2te76KXmtIfrOMKJ7xdwtYc',
|
|
|
|
|
'Content-Type': 'application/json',
|
|
|
|
|
},
|
|
|
|
|
// 默认为 post
|
|
|
|
|
method: 'post',
|
|
|
|
|
body: {
|
|
|
|
|
parameters: {
|
|
|
|
|
notice_text: that.aitext,
|
|
|
|
|
txt: that.aitext,
|
|
|
|
|
},
|
|
|
|
|
// workflow_id: that.aiConfig.id,
|
|
|
|
|
workflow_id: '7492238568816656410',
|
|
|
|
|
workflow_id: '7520535773797318690',
|
|
|
|
|
// workflow_id: '7492238568816656410',
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|