Browse Source

feat: 解决,内容管理,文章管理,翻页面,回到之前界面数据不刷新

332777428@qq.com 2 months ago
parent
commit
5695327c5e
3 changed files with 582 additions and 252 deletions
  1. 21 17
      src/router/index.js
  2. 560 235
      src/views/content/article/detail.vue
  3. 1 0
      src/views/content/article/index.vue

+ 21 - 17
src/router/index.js

@@ -92,6 +92,7 @@ export const constantRoutes = [{
 // 动态路由,基于用户权限动态去加载
 export const dynamicRoutes = [
   //****************** 内容管理 *******************//
+
   // 视频管理
   {
     path: '/content',
@@ -110,6 +111,25 @@ export const dynamicRoutes = [
       }
     }]
   },
+
+  // 文章管理
+  {
+    path: '/content',
+    name: 'articleIndex',
+    component: Layout,
+    hidden: true,
+    permissions: ['content:articleList:list'],
+    children: [{
+      path: 'articleList/detail',
+      component: () => import('@/views/content/article/detail'),
+      name: 'articleDetail',
+      meta: {
+        title: '文章详情',
+        activeMenu: '/content/articleList'
+      }
+    }]
+  },
+
   {
     path: '/system/user-auth',
     component: Layout,
@@ -203,23 +223,7 @@ export const dynamicRoutes = [
       }
     }]
   },
-  // 文章管理
-  {
-    path: '/content',
-    component: Layout,
-    hidden: true,
-    permissions: ['content:articleList:list'],
-    name: 'articleList',
-    children: [{
-      path: 'articleList/detail',
-      component: () => import('@/views/content/article/detail'),
-      name: 'articleDetail',
-      meta: {
-        title: '文章详情',
-        activeMenu: '/content/articleList'
-      }
-    }]
-  },
+
   // 设备管理
   // 设备列表
   {

File diff suppressed because it is too large
+ 560 - 235
src/views/content/article/detail.vue


+ 1 - 0
src/views/content/article/index.vue

@@ -115,6 +115,7 @@ import { change, list } from "@/api/content/article";
 import { dialogCallBack } from "@/utils/DialogUtil";
 import VueQr from "vue-qr";
 export default {
+  name: "ArticleIndex",
   components: {
     VueQr,
   },