mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-05 03:05:07 +08:00
fix: 控制 tab 是否可以刷新 (#257)
This commit is contained in:
parent
7fbb9e847d
commit
712f22a9ac
@ -253,7 +253,7 @@ export const layout = {
|
||||
- **类型**:`boolean`
|
||||
- **默认值**:`false`
|
||||
|
||||
- **详情**:是否开启多页。
|
||||
- **详情**:是否开启多页。可通过 tabReload: false 控制标签页是否重新加载。
|
||||
|
||||
### menus
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
<FTabPane v-for="page in pageList" :key="page.path" :value="page.path" :closable="pageList.length > 1">
|
||||
<template #tab>
|
||||
{{ page.title }}
|
||||
<ReloadOutlined v-show="route.path === page.path" class="layout-tabs-close-icon" @click="reloadPage(page.path)" />
|
||||
<ReloadOutlined v-if="page.tabReload" v-show="route.path === page.path" class="layout-tabs-close-icon" @click="reloadPage(page.path)" />
|
||||
</template>
|
||||
</FTabPane>
|
||||
<template #suffix>
|
||||
@ -73,6 +73,7 @@ export default {
|
||||
name: _route.meta.name ?? _route.name,
|
||||
title: computedTitle,
|
||||
key: getKey(),
|
||||
tabReload: _route.meta.tabReload ?? true,
|
||||
};
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user