【发布时间】:2021-07-16 16:41:06
【问题描述】:
我想从 main.js 重新渲染我的组件 notfication.vue。
main.js 文件在全球范围内可用。
在这个文件中,我收到了通知。收到通知后,我想重新渲染组件。
PushNotifications.addListener('pushNotificationReceived',
async (notification) => {
// Rerender notification component from here
notificationComponent ???
}
);
【问题讨论】:
标签: javascript vue.js vuex vuejs3