12-17
This commit is contained in:
@ -615,14 +615,14 @@ class StandText extends Base {
|
||||
if(isAdd) {
|
||||
this.options.positions.splice(selectPoint.index, 1)
|
||||
}
|
||||
if (!that.options.positions || that.options.positions.length < 2) {
|
||||
if (!this.options.positions || this.options.positions.length < 2) {
|
||||
console.warn('最少需要两个坐标!')
|
||||
window.ELEMENT && window.ELEMENT.Message({
|
||||
message: '最少需要两个坐标!',
|
||||
type: 'warning',
|
||||
duration: 1500
|
||||
});
|
||||
that.options.positions = [...previous]
|
||||
this.options.positions = [...previous]
|
||||
}
|
||||
cb(null, this.options.positions)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user