@zhongguo168a/yxeditor-common 0.0.146 → 0.0.148
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +3 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -4436,13 +4436,14 @@ class ViewModel extends EventDispatcher {
|
|
|
4436
4436
|
}
|
|
4437
4437
|
stop(reason) {
|
|
4438
4438
|
try {
|
|
4439
|
+
this._reason = reason;
|
|
4439
4440
|
this.onStop();
|
|
4440
4441
|
}
|
|
4441
4442
|
catch (e) {
|
|
4442
4443
|
console.error(`stop view ${this.toString()}`);
|
|
4443
4444
|
console.error(e.stack);
|
|
4444
4445
|
}
|
|
4445
|
-
this.
|
|
4446
|
+
this.close();
|
|
4446
4447
|
}
|
|
4447
4448
|
/**
|
|
4448
4449
|
* 等待发送的结果
|
|
@@ -4499,7 +4500,7 @@ class ViewModel extends EventDispatcher {
|
|
|
4499
4500
|
}
|
|
4500
4501
|
}
|
|
4501
4502
|
if (err) {
|
|
4502
|
-
this.
|
|
4503
|
+
this.stop(err);
|
|
4503
4504
|
}
|
|
4504
4505
|
else {
|
|
4505
4506
|
if (params.length > 0) {
|