|
@@ -210,9 +210,11 @@ export default {
|
|
|
this.form.role = [{ value: '' }]
|
|
|
}
|
|
|
let conversationList = []
|
|
|
- this.form.conversationList.forEach(item => {
|
|
|
- conversationList.push(item.openConversationId)
|
|
|
- })
|
|
|
+ if (this.form.conversationList) {
|
|
|
+ this.form.conversationList.forEach(item => {
|
|
|
+ conversationList.push(item.openConversationId)
|
|
|
+ })
|
|
|
+ }
|
|
|
this.form.conversationList = conversationList
|
|
|
this.fileList = [{ name: this.form.name, url: this.form.docUrl }]
|
|
|
}
|
|
@@ -348,18 +350,20 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
let conversationList = []
|
|
|
- this.conversationList.forEach(item => {
|
|
|
- if (
|
|
|
- this.form.conversationList.find(
|
|
|
- ltem => item.openConversationId == ltem
|
|
|
- )
|
|
|
- ) {
|
|
|
- conversationList.push({
|
|
|
- chatId: item.chatId,
|
|
|
- openConversationId: item.openConversationId
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
+ if (this.conversationList) {
|
|
|
+ this.conversationList.forEach(item => {
|
|
|
+ if (
|
|
|
+ this.form.conversationList.find(
|
|
|
+ ltem => item.openConversationId == ltem
|
|
|
+ )
|
|
|
+ ) {
|
|
|
+ conversationList.push({
|
|
|
+ chatId: item.chatId,
|
|
|
+ openConversationId: item.openConversationId
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
let code = {
|
|
|
docUrl: this.form.docUrl,
|
|
|
linkUrl: this.form.linkUrl,
|