mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-05 11:18:54 +08:00
fix: qiankun props 异常
This commit is contained in:
parent
a92480d70d
commit
081bddc826
@ -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;
|
||||
}
|
||||
})
|
||||
|
36
packages/fes-runtime/types.d.ts
vendored
36
packages/fes-runtime/types.d.ts
vendored
@ -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'
|
||||
};
|
||||
|
@ -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: [
|
||||
|
Loading…
x
Reference in New Issue
Block a user