|
|
@ -1,5 +1,5 @@ |
|
|
|
<script setup lang="ts"> |
|
|
|
<script setup lang="ts"> |
|
|
|
import { computed } from 'vue' |
|
|
|
import { computed,onMounted,onBeforeUnmount} from 'vue' |
|
|
|
import { App, ConfigProvider } from 'ant-design-vue' |
|
|
|
import { App, ConfigProvider } from 'ant-design-vue' |
|
|
|
import zhCN from 'ant-design-vue/es/locale/zh_CN' |
|
|
|
import zhCN from 'ant-design-vue/es/locale/zh_CN' |
|
|
|
|
|
|
|
|
|
|
@ -16,6 +16,22 @@ const themeConfig = computed(() => |
|
|
|
}, |
|
|
|
}, |
|
|
|
), |
|
|
|
), |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function isH5(){ |
|
|
|
|
|
|
|
const w = document.body.clientWidth |
|
|
|
|
|
|
|
if(w < 880){ |
|
|
|
|
|
|
|
window.location.href = 'http://aih.sinenux.com/#/' |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
isH5() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onMounted(()=> { |
|
|
|
|
|
|
|
window.addEventListener('resize', isH5) |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
onBeforeUnmount(()=>{ |
|
|
|
|
|
|
|
window.removeEventListener('resize', isH5); |
|
|
|
|
|
|
|
}) |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
|