Browse Source

feat:判断设备

pull/1/head
Wangwei-王伟 2 years ago
parent
commit
645aca396b
  1. 3
      src/components/Header.vue

3
src/components/Header.vue

@ -149,7 +149,7 @@
</header> </header>
<div class="edu-nav-box"> <div class="edu-nav-box" v-if="isPc">
<div class="mainbox"> <div class="mainbox">
<div class="edu-head"> <div class="edu-head">
<router-link class="logo" to="/"><img src="@/assets/logo.png" /></router-link> <router-link class="logo" to="/"><img src="@/assets/logo.png" /></router-link>
@ -359,6 +359,7 @@
setup() { setup() {
const { proxy } = getCurrentInstance(); const { proxy } = getCurrentInstance();
const state = reactive({ const state = reactive({
isPc: document.body.clientWidth > 1200,
allMenu: [], allMenu: [],
leftMenu: [], leftMenu: [],
rightMenu: [], rightMenu: [],

Loading…
Cancel
Save