【发布时间】:2023-01-23 21:45:42
【问题描述】:
async sendPostMessageForExit() {
try {
this.$mNprogress.show();
await this.$store.dispatch(user/logout");
this.$mNprogress.hide();
this.postMessageExit();
} catch (error) {
handleGeneralError(error);
this.$mNprogress.hide();
this.postMessageExit();
}
},
让自己=这个;当我这样做时我可以访问它,但我想知道为什么我不能直接访问它。
【问题讨论】:
-
那么你可以访问它
-
可能是由于如何调用
sendPostMessageForExit?请分享minimal reproducible example,因为当前示例未显示问题
标签: javascript vue.js vuejs2