如果存在多个滚动列表之间切换时,页面不刷新导致的样式问题 请设置key 但会导致多标签tab页的缓存失效
-
- {isUseTabsRouter && (
-
- {tabRouters.map((router: TRouterInfo, idx: number) => (
- (
-
- router.path === route.path ? (
-
- handleRefresh(router, idx)}>
-
- 刷新
-
- {idx > 1 && (
- handleCloseAhead(router.path, idx)}>
-
- 关闭左侧
-
- )}
- {idx < tabRouters.length - 1 && (
- handleCloseBehind(router.path, idx)}>
-
- 关闭右侧
-
- )}
- handleCloseOther(router.path, idx)}>
-
- 关闭其它
-
-
- ) : null,
- }}
- >
- {!router.isHome ? router.title : }
-
- ),
- }}
- removable={!router.isHome}
- />
- ))}
-
- )}
-
- {showBreadcrumb && }
-
-
- {showFooter && renderFooter()}
-
- );
- };
-
- return {
- setting,
- mainLayoutCls,
- renderSidebar,
- renderHeader,
- renderContent,
- };
- },
- render() {
- const { layout } = this.setting;
- const header = this.renderHeader();
- const sidebar = this.renderSidebar();
- const content = this.renderContent();
- return (
-
- {layout === 'side' ? (
-
- {sidebar}
- {[header, content]}
-
- ) : (
-
- {header}
- {[sidebar, content]}
-
- )}
-
-
- );
- },
-});
diff --git a/src/layouts/index.vue b/src/layouts/index.vue
new file mode 100644
index 0000000..53d3f0b
--- /dev/null
+++ b/src/layouts/index.vue
@@ -0,0 +1,93 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/router/modules/base.ts b/src/router/modules/base.ts
index e4ef588..000d455 100644
--- a/src/router/modules/base.ts
+++ b/src/router/modules/base.ts
@@ -1,4 +1,4 @@
-import Layout from '@/layouts';
+import Layout from '@/layouts/index.vue';
import DashboardIcon from '@/assets/assets-slide-dashboard.svg';
export default [
diff --git a/src/router/modules/components.ts b/src/router/modules/components.ts
index 631189a..ba98689 100644
--- a/src/router/modules/components.ts
+++ b/src/router/modules/components.ts
@@ -1,4 +1,4 @@
-import Layout from '@/layouts';
+import Layout from '@/layouts/index.vue';
import ListIcon from '@/assets/assets-slide-list.svg';
import FormIcon from '@/assets/assets-slide-form.svg';
import DetailIcon from '@/assets/assets-slide-detail.svg';
diff --git a/src/router/modules/others.ts b/src/router/modules/others.ts
index 6d3747a..974bfb7 100644
--- a/src/router/modules/others.ts
+++ b/src/router/modules/others.ts
@@ -1,4 +1,4 @@
-import Layout from '@/layouts';
+import Layout from '@/layouts/index.vue';
import LogoutIcon from '@/assets/assets-slide-logout.svg';
export default [