Browse Source

修改数据看板画中画问题

11wqe1 16 hours ago
parent
commit
29fd3d1d74
3 changed files with 9 additions and 4 deletions
  1. 7 2
      src/permission.js
  2. 1 1
      src/views/HomeView.vue
  3. 1 1
      src/views/kanBan/components/dataBoardNew/index.vue

+ 7 - 2
src/permission.js

@@ -20,8 +20,13 @@ router.beforeEach(async (to, from, next) => {
       const userinfo = store.getters.userinfo && Object.keys(store.getters.userinfo).length > 0
       console.log(userinfo);
       
-      // 如果已登录,重定向到主页
-      next({ path: '/' })
+      if (whiteList.indexOf(to.path) !== -1) {
+        // 在免登录白名单中,直接进入
+        next()
+      }else{
+        // 如果已登录,重定向到主页
+        next({ path: '/' })
+      }
       NProgress.done()
     } else {
       const userinfo = store.getters.userinfo && Object.keys(store.getters.userinfo).length > 0

+ 1 - 1
src/views/HomeView.vue

@@ -76,7 +76,7 @@
 					</div>
 				</div>
 
-				
+				<!-- 荔园首页定制工具,不保存缓存 -->
 				<div style="height: calc(100vh - 60px)" v-if="clearifa">
 					<iframe
 						allow="camera *; microphone *;display-capture;midi;encrypted-media;fullscreen *;"

+ 1 - 1
src/views/kanBan/components/dataBoardNew/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="body">
+  <div class="body" :style="{padding : useridL ? '20px' : ''}" >
     <div class="barList">
         <div @click="cutPage(index)" :class="[pageEnd == index ? 'Selected' : '']" v-for="(i, index) in barList"
             :key="index">