From c70e3556f45b9d746f9cc104ad26ef9112f1cbc1 Mon Sep 17 00:00:00 2001 From: WangHao <43278047@qq.com> Date: Fri, 21 Aug 2020 23:34:25 +0800 Subject: [PATCH] =?UTF-8?q?vue=E8=B7=AF=E7=94=B1=E4=BC=A0=E5=8F=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/router/index.js | 11 +++++- ruoyi-ui/src/views/bookmark/content/index.vue | 24 ++++++++----- ruoyi-ui/src/views/bookmark/index/index.vue | 34 +++++++++++++------ ruoyi-ui/src/views/bookmark/menu/index.vue | 2 ++ 4 files changed, 51 insertions(+), 20 deletions(-) diff --git a/ruoyi-ui/src/router/index.js b/ruoyi-ui/src/router/index.js index 5e587b5e7..340a6f459 100644 --- a/ruoyi-ui/src/router/index.js +++ b/ruoyi-ui/src/router/index.js @@ -11,6 +11,7 @@ import Layout from '@/layout' import bookmarkmenu from '@/views/bookmark/menu'; import index3 from '@/views/bookmark/index'; + // import content from '../views/bookmark/content/index'; @@ -150,9 +151,17 @@ export const constantRoutes = [ children: [ { path: '/content', + name: 'content', component: resolve => require(['../views/bookmark/content/index.vue'], resolve), + query:{ + t:Date.now(), + }, + meta:{ + requireAuth: false,//加该字段,表示进入这个路由是需要登录的true + }, } - ],redirect:'/content' + ], + }, ] diff --git a/ruoyi-ui/src/views/bookmark/content/index.vue b/ruoyi-ui/src/views/bookmark/content/index.vue index 206ff2c90..8423986f0 100644 --- a/ruoyi-ui/src/views/bookmark/content/index.vue +++ b/ruoyi-ui/src/views/bookmark/content/index.vue @@ -1,10 +1,10 @@ -