import { defineComponent, watch } from 'vue'; // eslint-disable-next-line import/extensions import { MicroApp } from './MicroApp'; export const MicroAppWithMemoHistory = defineComponent({ components: { MicroApp, }, props: { name: { type: String, required: true, }, settings: Object, lifeCycles: Object, url: String, }, setup(props, { attrs }) { let microRouter; const onRouterInit = (router) => { microRouter = router; microRouter.push(props.url); }; watch( () => props.url, () => { microRouter.push(props.url); }, ); return () => ; }, });