This commit is contained in:
Henry Jordan
2021-01-28 19:05:33 +00:00
parent b2bd50cf30
commit 576d76652c
5 changed files with 68 additions and 22 deletions

View File

@@ -121,12 +121,14 @@ export default {
eventMethod === "attachEvent" ? "onmessage" : "message";
eventer(messageEvent, function(e) {
if (
e.data === "redirect=todo" ||
e.message === "redirect=todo"
) {
if ( e.data === "redirect=todo" || e.message === "redirect=todo"){
that.page = "todo";
}
if ( e.data === "update=debugger" || e.message === "update=debugger"){
if(that.$refs["component"].updateView){
that.$refs["component"].updateView();
}
}
});
},
/**