Commit 354c9dc2 by Mr. Lan

fix bug.

parent 6ed4e84a
Showing with 8 additions and 6 deletions
...@@ -206,12 +206,14 @@ export default { ...@@ -206,12 +206,14 @@ export default {
if (this.previous !== '') { if (this.previous !== '') {
var previousValue = '' var previousValue = ''
const item = this.graph.findById(this.previous[0]) const item = this.graph.findById(this.previous[0])
previousValue = { ...item.getModel() } if (item !== undefined) {
var err = this.verifyProcess(previousValue) previousValue = { ...item.getModel() }
if (err !== '') { var err = this.verifyProcess(previousValue)
this.selectedModel = previousValue if (err !== '') {
this.$message.error(err) this.selectedModel = previousValue
return this.$message.error(err)
return
}
} }
} }
const item = this.graph.findById(items[0]) const item = this.graph.findById(items[0])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment