Przeglądaj źródła

feat: 解决,签到管理,兑换配置,翻页面,回到之前界面数据不刷新

332777428@qq.com 2 miesięcy temu
rodzic
commit
421fa4e652
2 zmienionych plików z 19 dodań i 16 usunięć
  1. 17 16
      src/router/index.js
  2. 2 0
      src/views/registration/exchange/index.vue

+ 17 - 16
src/router/index.js

@@ -705,6 +705,23 @@ export const dynamicRoutes = [
     }]
   },
 
+    // 兑换配置
+  {
+    name: 'registrationExchange',
+    path: '/registration',
+    component: Layout,
+    hidden: true,
+    permissions: ['registration:exchange:list'],
+    children: [{
+      name: 'registrationExchangeDetail',
+      path: 'exchange/detail',
+      component: () => import('@/views/registration/exchange/detail'),
+      meta: {
+        title: '配置详情',
+        activeMenu: '/registration/exchange'
+      }
+    }]
+  },
 
 
 
@@ -905,22 +922,6 @@ export const dynamicRoutes = [
   },
 
 
-  // 兑换配置
-  {
-    path: '/registration',
-    component: Layout,
-    hidden: true,
-    permissions: ['registration:exchangeConfig:list'],
-    children: [{
-      path: 'exchangeConfig/detail',
-      component: () => import('@/views/registration/exchange/detail'),
-      name: 'exchangeConfigDetail',
-      meta: {
-        title: '配置详情',
-        activeMenu: '/registration/exchangeConfig'
-      }
-    }]
-  },
   // App升级
   {
     path: '/push',

+ 2 - 0
src/views/registration/exchange/index.vue

@@ -1,4 +1,5 @@
 <!-- 签到管理 兑换配置 -->
+
 <template>
   <div class="app-container">
     <!-- 搜索 -->
@@ -115,6 +116,7 @@ import { change, list, remove } from "@/api/registration/exchange";
 import { disabledMixin } from "@/mixin/index";
 import { dialogCallBack } from "@/utils/DialogUtil";
 export default {
+  name:"RegistrationExchange",
   mixins: [disabledMixin],
   data() {
     return {