We use the mounted() and beforeDestroy() hooks to subscribe to and unsubscribe from the event bus: <script> import eventBus from '.
確定! 回上一頁