refactor: clean up HomeView.vue and update Vite config

- Reformatted imports in HomeView.vue for better readability.
- Removed unnecessary comments and improved component structure.
- Updated styles in HomeView.vue for consistency.
- Removed input path from rollupOptions in vite.config.js.
This commit is contained in:
bighuixiang
2025-06-18 22:57:10 +08:00
parent 88866d9ea4
commit 3aa56c1c3f
6 changed files with 7799 additions and 6639 deletions

View File

@@ -1,11 +1,25 @@
<template>
<div class="homeView">
<!-- <homeIndex @setTask="()=>$emit('setTask')"></homeIndex> -->
</div>
<div class="homeView">
<!-- <homeIndex @setTask="()=>$emit('setTask')"></homeIndex> -->
</div>
</template>
<script lang="ts">
import { defineComponent, h, ref, computed, reactive, toRefs, inject,provide,nextTick,createVNode,onBeforeUnmount, toRef, watch} from "vue";
import {
defineComponent,
h,
ref,
computed,
reactive,
toRefs,
inject,
provide,
nextTick,
createVNode,
onBeforeUnmount,
toRef,
watch,
} from "vue";
// import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
import CollectionModal from "@/component/HomePage/collectionModal.vue";
import NewCollectionReview from "@/component/HomePage/NewCollectionReview.vue";
@@ -17,43 +31,44 @@ import DesignDetail from "@/component/Detail/DesignDetail.vue";
import DesignDetailcopy from "@/component/DetailCopy/designDetail.vue";
// import homeIndex from "@/component/HomePage/index/index.vue";
import html2canvas from "html2canvas";
import { message,Modal } from "ant-design-vue";
import { message, Modal } from "ant-design-vue";
import { useStore } from "vuex";
import { Https } from "@/tool/https";
import { openGuide,driverObj__ } from "@/tool/guide";
import { LoadingOutlined ,ExclamationCircleOutlined} from "@ant-design/icons-vue";
import { openGuide, driverObj__ } from "@/tool/guide";
import {
LoadingOutlined,
ExclamationCircleOutlined,
} from "@ant-design/icons-vue";
// import JSZip, { forEach } from "jszip";
import { setCookie, getCookie, WriteCookie } from "@/tool/cookie";
import i18n from "@/lang";
import { useI18n } from "vue-i18n";
import { getMousePosition } from "@/tool/mdEvent";
import { removeClass } from "element-plus/es/utils";
const FileSaver = require("file-saver");
import FileSaver from "file-saver";
export default defineComponent({
name: "homePage",
components: {
// homeIndex,
NewCollectionReview,
DesignDetail,
ExportNewCoolection,
affiche,
productImg,
generalCanvas,
DesignDetailcopy
},
emits:['setTask'],
setup(props,{emit}) {
return {
};
},
name: "homePage",
components: {
// homeIndex,
NewCollectionReview,
DesignDetail,
ExportNewCoolection,
affiche,
productImg,
generalCanvas,
DesignDetailcopy,
},
emits: ["setTask"],
setup(props, { emit }) {
return {};
},
});
</script>
<style lang="less" scoped>
.homeView{
width: 100%;
height: 100%;
position: relative;
}
</style>
.homeView {
width: 100%;
height: 100%;
position: relative;
}
</style>