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