diff --git a/src/components/customDefaultPage/index.vue b/src/components/customDefaultPage/index.vue index 7c695b7..3c08fc5 100644 --- a/src/components/customDefaultPage/index.vue +++ b/src/components/customDefaultPage/index.vue @@ -3,6 +3,8 @@ import { computed } from 'vue' import { useWindowSize } from '@vueuse/core' import size375 from '@/components/customDefaultPage/size375/index.vue' +import size768 from '@/components/customDefaultPage/size1920/index.vue' +import size1440 from '@/components/customDefaultPage/size1920/index.vue' import size1920 from '@/components/customDefaultPage/size1920/index.vue' import { useRouter } from 'vue-router' import { useI18n } from 'vue-i18n' @@ -15,13 +17,11 @@ const viewComponent = computed(() => { const viewWidth = width.value if (viewWidth <= 450) { return size375 - } - // else if (viewWidth <= 1100) { - // return size768; - // } else if (viewWidth <= 1500) { - // return size1440; - // } - else if (viewWidth <= 1920 || viewWidth > 1920) { + } else if (viewWidth <= 1100) { + return size768 + } else if (viewWidth <= 1500) { + return size1440 + } else if (viewWidth <= 1920 || viewWidth > 1920) { return size1920 } }) @@ -30,7 +30,7 @@ const viewComponent = computed(() => { diff --git a/src/components/customFooter/index.vue b/src/components/customFooter/index.vue index ed6fd6a..5b40e6e 100644 --- a/src/components/customFooter/index.vue +++ b/src/components/customFooter/index.vue @@ -3,6 +3,8 @@ import { computed } from 'vue' import { useWindowSize } from '@vueuse/core' import size375 from '@/components/customFooter/size375/index.vue' +import size768 from '@/components/customFooter/size1920/index.vue' +import size1440 from '@/components/customFooter/size1920/index.vue' import size1920 from '@/components/customFooter/size1920/index.vue' import { useRouter } from 'vue-router' import { useI18n } from 'vue-i18n' @@ -15,13 +17,11 @@ const viewComponent = computed(() => { const viewWidth = width.value if (viewWidth <= 450) { return size375 - } - // else if (viewWidth <= 1100) { - // return size768; - // } else if (viewWidth <= 1500) { - // return size1440; - // } - else if (viewWidth <= 1920 || viewWidth > 1920) { + } else if (viewWidth <= 1100) { + return size768 + } else if (viewWidth <= 1500) { + return size1440 + } else if (viewWidth <= 1920 || viewWidth > 1920) { return size1920 } }) diff --git a/src/components/customFooter/size1920/index.vue b/src/components/customFooter/size1920/index.vue index 08cd066..8ec1f90 100644 --- a/src/components/customFooter/size1920/index.vue +++ b/src/components/customFooter/size1920/index.vue @@ -1,23 +1,23 @@ - - - - - \ No newline at end of file + + + + + + + diff --git a/src/components/customHeader/index.vue b/src/components/customHeader/index.vue index 5886eab..0715df1 100644 --- a/src/components/customHeader/index.vue +++ b/src/components/customHeader/index.vue @@ -3,6 +3,8 @@ import { computed } from 'vue' import { useWindowSize } from '@vueuse/core' import size375 from '@/components/customHeader/size375/index.vue' +import size768 from '@/components/customHeader/size375/index.vue' +import size1440 from '@/components/customHeader/size1920/index.vue' import size1920 from '@/components/customHeader/size1920/index.vue' import { useRouter } from 'vue-router' import { useI18n } from 'vue-i18n' @@ -15,13 +17,11 @@ const viewComponent = computed(() => { const viewWidth = width.value if (viewWidth <= 450) { return size375 - } - // else if (viewWidth <= 1100) { - // return size768; - // } else if (viewWidth <= 1500) { - // return size1440; - // } - else if (viewWidth <= 1920 || viewWidth > 1920) { + } else if (viewWidth <= 768) { + return size768 + } else if (viewWidth <= 1500) { + return size1440 + } else if (viewWidth <= 1920 || viewWidth > 1920) { return size1920 } }) diff --git a/src/components/customHeader/size1920/index.vue b/src/components/customHeader/size1920/index.vue index 27490d4..63060db 100644 --- a/src/components/customHeader/size1920/index.vue +++ b/src/components/customHeader/size1920/index.vue @@ -81,7 +81,7 @@ const handleToHome = () => {