From c8c1c021ead4eda667d5c46f0b88b0d8cd1b5a1b Mon Sep 17 00:00:00 2001 From: Xu Zhimeng Date: Wed, 8 Nov 2023 11:47:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=90=84=E9=A1=B5=E9=9D=A2keepAlive?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/layouts/BasicLayout.vue | 11 +---------- src/components/layouts/RouteView.vue | 5 ++--- src/config/router.config.js | 4 ++-- src/utils/util.js | 2 +- src/views/logManage/index.vue | 1 + src/views/spectrumAnalysis/index.vue | 1 + src/views/stationOperation/index.vue | 1 + 7 files changed, 9 insertions(+), 16 deletions(-) diff --git a/src/components/layouts/BasicLayout.vue b/src/components/layouts/BasicLayout.vue index 65b40cd..2f1c697 100644 --- a/src/components/layouts/BasicLayout.vue +++ b/src/components/layouts/BasicLayout.vue @@ -1,10 +1,9 @@ @@ -22,14 +21,6 @@ } }, - computed: { - keepAlive () { - return this.$route.meta.keepAlive - } - }, - methods: { - - }, } diff --git a/src/components/layouts/RouteView.vue b/src/components/layouts/RouteView.vue index 5482e2b..6b37da8 100644 --- a/src/components/layouts/RouteView.vue +++ b/src/components/layouts/RouteView.vue @@ -1,9 +1,8 @@ diff --git a/src/config/router.config.js b/src/config/router.config.js index bdf036e..caabb1f 100644 --- a/src/config/router.config.js +++ b/src/config/router.config.js @@ -1,4 +1,4 @@ -import { TabLayout, RouteView, BlankLayout, PageView } from '@/components/layouts' +import { TabLayout, RouteView, BlankLayout, PageView, BasicLayout } from '@/components/layouts' import Login from '@/views/user/Login' /** @@ -10,7 +10,7 @@ export const asyncRouterMap = [ { path: '/', name: 'dashboard', - component: TabLayout, + component: BasicLayout, meta: { title: '首页' }, redirect: '/station-operation', children: [ diff --git a/src/utils/util.js b/src/utils/util.js index ca46492..452a351 100644 --- a/src/utils/util.js +++ b/src/utils/util.js @@ -88,7 +88,7 @@ export function generateIndexRouter(data) { path: '/', name: 'dashboard', //component: () => import('@/components/layouts/BasicLayout'), - component: resolve => require(['@/components/layouts/TabLayout'], resolve), + component: resolve => require(['@/components/layouts/BasicLayout'], resolve), meta: { title: '首页' }, redirect: '/station-operation', children: [ diff --git a/src/views/logManage/index.vue b/src/views/logManage/index.vue index 8c2742e..2a71486 100644 --- a/src/views/logManage/index.vue +++ b/src/views/logManage/index.vue @@ -99,6 +99,7 @@ const columns = [ ] export default { + name: 'LogManage', mixins: [JeecgListMixin], components: { TreeWithLine diff --git a/src/views/spectrumAnalysis/index.vue b/src/views/spectrumAnalysis/index.vue index 7730ff1..f4063da 100644 --- a/src/views/spectrumAnalysis/index.vue +++ b/src/views/spectrumAnalysis/index.vue @@ -259,6 +259,7 @@ const ANALYZE_TYPE = { BETA_GAMMA: 'betaGammaAnalysis', } export default { + name: 'SpectrumAnalysis', components: { BetaGammaAnalysis, GammaAnalysis, diff --git a/src/views/stationOperation/index.vue b/src/views/stationOperation/index.vue index 3acfadf..65838b5 100644 --- a/src/views/stationOperation/index.vue +++ b/src/views/stationOperation/index.vue @@ -166,6 +166,7 @@ import { getAction } from '../../api/manage' import { cloneDeep } from 'lodash' export default { + name: 'StationOperation', components: { Map, MapMarker,