diff --git a/packages/fes-plugin-qiankun/src/micro/runtime/lifecycles.tpl b/packages/fes-plugin-qiankun/src/micro/runtime/lifecycles.tpl index a12e9b52..20c86e23 100644 --- a/packages/fes-plugin-qiankun/src/micro/runtime/lifecycles.tpl +++ b/packages/fes-plugin-qiankun/src/micro/runtime/lifecycles.tpl @@ -94,7 +94,7 @@ export function genMount(mountElementId) { } hasMountedAtLeastOnce = true; cacheAppPromise.then((app)=>{ - if(!cache[props.name]) { + if(props?.name && !cache[props.name]) { cache[props.name] = app; } }) diff --git a/packages/fes-runtime/types.d.ts b/packages/fes-runtime/types.d.ts index 4c906b33..7bca9d0e 100644 --- a/packages/fes-runtime/types.d.ts +++ b/packages/fes-runtime/types.d.ts @@ -1,19 +1,21 @@ +export { Plugin } from './es/index' +export { + useRoute, + useRouter, + onBeforeRouteUpdate, + onBeforeRouteLeave, + RouterLink, + RouterView, + useLink, + createWebHashHistory, + createWebHistory, + createMemoryHistory, + createRouter, +} from 'vue-router'; -declare module "@fesjs/fes" { - export { - useRoute, - useRouter, - onBeforeRouteUpdate, - onBeforeRouteLeave, - RouterLink, - RouterView, - useLink, - createWebHashHistory, - createWebHistory, - createMemoryHistory, - createRouter, - } from 'vue-router'; - - export { default as Plugin, ApplyPluginsType } from './plugin'; -} +export interface ApplyPluginsType { + compose: 'compose', + event: 'event', + modify: 'modify' +}; diff --git a/packages/fes-template-vite/.fes.js b/packages/fes-template-vite/.fes.js index 42a97334..e1c741b0 100644 --- a/packages/fes-template-vite/.fes.js +++ b/packages/fes-template-vite/.fes.js @@ -33,6 +33,7 @@ export default { menus: [ { name: 'index', + icon: '/wine-outline.svg', match: ['/route/*'] }, @@ -69,7 +70,7 @@ export default { ] }, locale: { - legacy: true + legacy: false }, enums: { status: [