Browse Source

feat: 解决,服务管理,场景专区,翻页面,回到之前界面数据不刷新

332777428@qq.com 2 months atrás
parent
commit
d52ad4b6ff
2 changed files with 30 additions and 18 deletions
  1. 28 17
      src/router/index.js
  2. 2 1
      src/views/operation/scene/index.vue

+ 28 - 17
src/router/index.js

@@ -537,6 +537,33 @@ export const dynamicRoutes = [
     }]
   },
 
+  // 场景专区
+  {
+    name: 'operationScene',
+    path: '/operation',
+    component: Layout,
+    hidden: true,
+    permissions: ['operation:scene:list'],
+
+    children: [{
+      name: 'operationSceneDetail',
+      path: 'scene/detail',
+      component: () => import('@/views/operation/scene/detail'),
+      meta: {
+        title: '场景专区详情',
+        activeMenu: '/operation/scene'
+      }
+    }]
+  },
+
+
+
+
+
+
+
+
+
 
 
 
@@ -724,23 +751,7 @@ export const dynamicRoutes = [
 
 
 
-  // 场景专区
-  {
-    path: '/operation',
-    component: Layout,
-    hidden: true,
-    permissions: ['operation:scene:list'],
-    name: 'scene',
-    children: [{
-      path: 'scene/detail',
-      component: () => import('@/views/operation/scene/detail'),
-      name: 'sceneDetail',
-      meta: {
-        title: '场景专区详情',
-        activeMenu: '/operation/scene'
-      }
-    }]
-  },
+
   // 协议管理
   {
     path: '/operation',

+ 2 - 1
src/views/operation/scene/index.vue

@@ -1,4 +1,4 @@
-<!-- 场景专区 -->
+<!-- 运营管理 场景专区 -->
 <template>
   <div class="app-container">
     <!-- 列表 -->
@@ -60,6 +60,7 @@ import { change, list } from "@/api/operation/scene";
 import { disabledMixin } from "@/mixin/index";
 import { dialogCallBack } from "@/utils/DialogUtil";
 export default {
+  name:"OperationScene",
   mixins: [disabledMixin],
   data() {
     return {