Jelajahi Sumber

feat: 解决,服务管理,推荐管理,翻页面,回到之前界面数据不刷新

332777428@qq.com 2 bulan lalu
induk
melakukan
00cf452bcd
2 mengubah file dengan 20 tambahan dan 16 penghapusan
  1. 19 16
      src/router/index.js
  2. 1 0
      src/views/operation/recommend/index.vue

+ 19 - 16
src/router/index.js

@@ -446,6 +446,24 @@ export const dynamicRoutes = [
     }]
   },
 
+    // 推荐管理
+  {
+    name: 'operationRecommend',
+    path: '/operation',
+    component: Layout,
+    hidden: true,
+    permissions: ['operation:recommend:list'],
+    children: [{
+      name: 'operationRecommendDetail',
+      path: 'homePage/recommend/detail',
+      component: () => import('@/views/operation/recommend/detail'),
+      meta: {
+        title: '推荐详情',
+        activeMenu: '/operation/homePage/operationRecommend'
+      }
+    }]
+  },
+
 
 
 
@@ -629,22 +647,7 @@ export const dynamicRoutes = [
   //   ]
   // },
 
-  // 推荐管理
-  {
-    path: '/operation',
-    component: Layout,
-    hidden: true,
-    permissions: ['operation:recommend:list'],
-    children: [{
-      path: 'homePage/recommend/detail',
-      component: () => import('@/views/operation/recommend/detail'),
-      name: 'recommendDetail',
-      meta: {
-        title: '推荐详情',
-        activeMenu: '/operation/homePage/operationRecommend'
-      }
-    }]
-  },
+
   // 定制频道
   {
     path: '/operation',

+ 1 - 0
src/views/operation/recommend/index.vue

@@ -264,6 +264,7 @@ typeList,
 } from "@/api/operation/recommend";
 import { dialogCallBack } from "@/utils/DialogUtil";
 export default {
+  name:"OperationRecommend",
   data() {
     return {
       // 遮罩层