|
@@ -88,7 +88,7 @@ export default {
|
|
|
start() {
|
|
|
if (this.loading) {
|
|
|
if (this.active) {
|
|
|
- that.$refs.unityvue.contentWindow.postMessage({ do: "1" }, "*");
|
|
|
+ this.$refs.unityvue.contentWindow.postMessage({ do: "1" }, "*");
|
|
|
} else {
|
|
|
this.$message.error("请拼接完才能执行");
|
|
|
}
|
|
@@ -191,6 +191,8 @@ export default {
|
|
|
|
|
|
if (e.data.active) {
|
|
|
that.active = true;
|
|
|
+ }else if (e.data.active != undefined) {
|
|
|
+ that.active = false;
|
|
|
}
|
|
|
});
|
|
|
},
|