|
@@ -274,6 +274,7 @@ export default {
|
|
|
let obj = JSON.parse(row.json)
|
|
|
this.menuList = obj;
|
|
|
this.$refs.aiChat.fileList = obj.map(i=>i.url)
|
|
|
+ this.menuIndex = 0;
|
|
|
} else {
|
|
|
console.error('aiChat ref is not available');
|
|
|
}
|
|
@@ -529,7 +530,11 @@ export default {
|
|
|
computed: {
|
|
|
showFileUrl() {
|
|
|
if (this.menuList.length) {
|
|
|
- return this.menuList[this.menuIndex].url
|
|
|
+ if(this.menuList[this.menuIndex]){
|
|
|
+ return this.menuList[this.menuIndex].url
|
|
|
+ }else {
|
|
|
+ return ""
|
|
|
+ }
|
|
|
} else {
|
|
|
return "";
|
|
|
}
|