1
0
mirror of https://github.com/WeBankFinTech/fes.js.git synced 2025-04-06 03:59:53 +08:00
harrywan 9181bf50ac feat: qiankun支持多页签keepalive ()
* fix: 判断页面权限的path统一从match中拿路由path

* fix: qiankun主应用不改rootContainer

* fix: 消除initialState为空时的warn

* refactor: modifyCreateHistroy更改为modifyCreateHistory

* fix: qiankun支持多页签keepalive
2022-04-20 10:35:16 +08:00

44 lines
1.1 KiB
Vue

<template>
<div>
main
<FTabs v-model="activeKey">
<FTabPane name="Tab 1" value="1">
<MicroAppWithMemoHistory key="1" name="app1" url="/app1" a="1" />
</FTabPane>
<FTabPane name="Tab 2" value="2">
<MicroAppWithMemoHistory key="2" name="app1" url="/app1/test" />
</FTabPane>
<FTabPane name="Tab 3" value="3">
Content of Tab Pane 3
</FTabPane>
</FTabs>
</div>
</template>
<config>
{
"name": "index",
"title": "首页"
}
</config>
<script>
import { ref, onMounted } from 'vue';
import { MicroAppWithMemoHistory } from '@fesjs/fes';
import { FTabPane, FTabs } from '@fesjs/fes-design';
export default {
components: { FTabs, FTabPane, MicroAppWithMemoHistory },
setup() {
const url = ref('/app1/test');
onMounted(() => {
setTimeout(() => {
url.value = '/app1';
}, 3000);
});
return {
activeKey: ref('1'),
url
};
}
};
</script>