|
@@ -324,14 +324,18 @@ export default {
|
|
let aiImageNav = res.data.FunctionResponse.choices
|
|
let aiImageNav = res.data.FunctionResponse.choices
|
|
? res.data.FunctionResponse.choices[0].message.content
|
|
? res.data.FunctionResponse.choices[0].message.content
|
|
: "";
|
|
: "";
|
|
- try {
|
|
|
|
|
|
+ try {
|
|
aiImageNav = JSON.parse(aiImageNav);
|
|
aiImageNav = JSON.parse(aiImageNav);
|
|
|
|
+ this.myAnswerList.engTitle = aiImageNav.title;
|
|
|
|
+ this.myAnswerList.engText = aiImageNav.content;
|
|
} catch (error) {
|
|
} catch (error) {
|
|
- this.getImageNav();
|
|
|
|
|
|
+ // this.getImageNav();
|
|
|
|
+ this.myAnswerList.engTitle = '';
|
|
|
|
+ this.myAnswerList.engText = aiImageNav;
|
|
}
|
|
}
|
|
console.log(aiImageNav);
|
|
console.log(aiImageNav);
|
|
- this.myAnswerList.engTitle = aiImageNav.title;
|
|
|
|
- this.myAnswerList.engText = aiImageNav.content;
|
|
|
|
|
|
+ // this.myAnswerList.engTitle = aiImageNav.title;
|
|
|
|
+ // this.myAnswerList.engText = aiImageNav.content;
|
|
this.type = 1;
|
|
this.type = 1;
|
|
loading.close();
|
|
loading.close();
|
|
},
|
|
},
|