|
@@ -10,8 +10,14 @@
|
|
|
<component :is="Component" :key="router.currentRoute.value.path" v-if="!router.currentRoute.value.meta?.keepAlive"/>
|
|
|
</router-view> -->
|
|
|
</div>
|
|
|
- <Footers v-if="footerWhiteList.indexOf(router.currentRoute.value.path) === -1" :class="{'mt-10': !router.currentRoute.value.path.includes('/mall')}"></Footers>
|
|
|
- <Slider v-if="whiteList.indexOf(router.currentRoute.value.path) === -1" class="slider"></Slider>
|
|
|
+ <Footers
|
|
|
+ v-if="footerWhiteList.indexOf(router.currentRoute.value.path) === -1"
|
|
|
+ :class="{'mt-10': !router.currentRoute.value.path.includes('/mall')}"
|
|
|
+ ></Footers>
|
|
|
+ <Slider
|
|
|
+ v-if="whiteList.indexOf(router.currentRoute.value.path) === -1"
|
|
|
+ class="slider"
|
|
|
+ ></Slider>
|
|
|
|
|
|
<BackTop />
|
|
|
</div>
|
|
@@ -19,7 +25,7 @@
|
|
|
|
|
|
<script setup>
|
|
|
defineOptions({ name: 'personal-layout-index' })
|
|
|
-import { onMounted, watch } from 'vue'
|
|
|
+import { onMounted } from 'vue'
|
|
|
import NavBar from './personal/navBar.vue'
|
|
|
import Footers from './personal/footer.vue'
|
|
|
import Slider from './personal/slider.vue'
|
|
@@ -29,7 +35,17 @@ import { useMallStore } from '@/store/mall'
|
|
|
import BackTop from '@/components/BackTop'
|
|
|
|
|
|
// 不展示侧边栏名单
|
|
|
-const whiteList = ['/login', '/privacyPolicy', '/userAgreement', '/register', '/recruit/personal/advertisement/introduce', '/contactService']
|
|
|
+const whiteList = [
|
|
|
+ '/login',
|
|
|
+ '/privacyPolicy',
|
|
|
+ '/userAgreement',
|
|
|
+ '/register',
|
|
|
+ '/recruit/personal/advertisement/introduce',
|
|
|
+ '/contactService',
|
|
|
+ '/headhunting',
|
|
|
+ '/headhunting/service',
|
|
|
+ '/headhunting/service/details'
|
|
|
+]
|
|
|
// 不展示页脚白名单
|
|
|
const footerWhiteList = [
|
|
|
'/recruit/personal/message',
|