Newer
Older
KaiFengPC / src / views / index.vue
@鲁yixuan 鲁yixuan on 18 Jun 601 bytes 1
<template>
  <!-- 首页 -->
  <div class="publicContainer">
    <!-- <TemplateSM></TemplateSM> -->
  </div>
</template>

<script setup name="homePage">
import TemplateSM from './全局文件公共说明.vue';
const router = useRouter();
const getBrowserWidth = function () {
  if (window.screen.width == 1920) {
    console.log('1920分辨率');
    router.push({ path: 'sponeScreen' + '/' + 'HaiMianScreen' });
  } else if (window.screen.width > 3500) {
    router.push({ path: '/chengguanweiScreen' });
    console.log('3588分辨率');
  }
};

onMounted(() => {
  getBrowserWidth();
});
</script>