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:
13
components.d.ts
vendored
13
components.d.ts
vendored
@@ -8,11 +8,24 @@ export {}
|
|||||||
/* prettier-ignore */
|
/* prettier-ignore */
|
||||||
declare module 'vue' {
|
declare module 'vue' {
|
||||||
export interface GlobalComponents {
|
export interface GlobalComponents {
|
||||||
|
ABadge: typeof import('ant-design-vue/es')['Badge']
|
||||||
|
ACheckbox: typeof import('ant-design-vue/es')['Checkbox']
|
||||||
|
ADrawer: typeof import('ant-design-vue/es')['Drawer']
|
||||||
AImage: typeof import('ant-design-vue/es')['Image']
|
AImage: typeof import('ant-design-vue/es')['Image']
|
||||||
AModal: typeof import('ant-design-vue/es')['Modal']
|
AModal: typeof import('ant-design-vue/es')['Modal']
|
||||||
|
APagination: typeof import('ant-design-vue/es')['Pagination']
|
||||||
APopover: typeof import('ant-design-vue/es')['Popover']
|
APopover: typeof import('ant-design-vue/es')['Popover']
|
||||||
|
AProgress: typeof import('ant-design-vue/es')['Progress']
|
||||||
|
ARangePicker: typeof import('ant-design-vue/es')['RangePicker']
|
||||||
ASelect: typeof import('ant-design-vue/es')['Select']
|
ASelect: typeof import('ant-design-vue/es')['Select']
|
||||||
|
ASelectOption: typeof import('ant-design-vue/es')['SelectOption']
|
||||||
|
ASlider: typeof import('ant-design-vue/es')['Slider']
|
||||||
ASpin: typeof import('ant-design-vue/es')['Spin']
|
ASpin: typeof import('ant-design-vue/es')['Spin']
|
||||||
|
ASwitch: typeof import('ant-design-vue/es')['Switch']
|
||||||
|
ATable: typeof import('ant-design-vue/es')['Table']
|
||||||
|
ATabPane: typeof import('ant-design-vue/es')['TabPane']
|
||||||
|
ATabs: typeof import('ant-design-vue/es')['Tabs']
|
||||||
|
AUpload: typeof import('ant-design-vue/es')['Upload']
|
||||||
RouterLink: typeof import('vue-router')['RouterLink']
|
RouterLink: typeof import('vue-router')['RouterLink']
|
||||||
RouterView: typeof import('vue-router')['RouterView']
|
RouterView: typeof import('vue-router')['RouterView']
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,11 +1,25 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="homeView">
|
<div class="homeView">
|
||||||
<!-- <homeIndex @setTask="()=>$emit('setTask')"></homeIndex> -->
|
<!-- <homeIndex @setTask="()=>$emit('setTask')"></homeIndex> -->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<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 { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
||||||
import CollectionModal from "@/component/HomePage/collectionModal.vue";
|
import CollectionModal from "@/component/HomePage/collectionModal.vue";
|
||||||
import NewCollectionReview from "@/component/HomePage/NewCollectionReview.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 DesignDetailcopy from "@/component/DetailCopy/designDetail.vue";
|
||||||
// import homeIndex from "@/component/HomePage/index/index.vue";
|
// import homeIndex from "@/component/HomePage/index/index.vue";
|
||||||
import html2canvas from "html2canvas";
|
import html2canvas from "html2canvas";
|
||||||
import { message,Modal } from "ant-design-vue";
|
import { message, Modal } from "ant-design-vue";
|
||||||
import { useStore } from "vuex";
|
import { useStore } from "vuex";
|
||||||
import { Https } from "@/tool/https";
|
import { Https } from "@/tool/https";
|
||||||
import { openGuide,driverObj__ } from "@/tool/guide";
|
import { openGuide, driverObj__ } from "@/tool/guide";
|
||||||
import { LoadingOutlined ,ExclamationCircleOutlined} from "@ant-design/icons-vue";
|
import {
|
||||||
|
LoadingOutlined,
|
||||||
|
ExclamationCircleOutlined,
|
||||||
|
} from "@ant-design/icons-vue";
|
||||||
// import JSZip, { forEach } from "jszip";
|
// import JSZip, { forEach } from "jszip";
|
||||||
import { setCookie, getCookie, WriteCookie } from "@/tool/cookie";
|
import { setCookie, getCookie, WriteCookie } from "@/tool/cookie";
|
||||||
import i18n from "@/lang";
|
import i18n from "@/lang";
|
||||||
import { useI18n } from "vue-i18n";
|
import { useI18n } from "vue-i18n";
|
||||||
import { getMousePosition } from "@/tool/mdEvent";
|
import { getMousePosition } from "@/tool/mdEvent";
|
||||||
import { removeClass } from "element-plus/es/utils";
|
import { removeClass } from "element-plus/es/utils";
|
||||||
const FileSaver = require("file-saver");
|
import FileSaver from "file-saver";
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: "homePage",
|
name: "homePage",
|
||||||
components: {
|
components: {
|
||||||
// homeIndex,
|
// homeIndex,
|
||||||
NewCollectionReview,
|
NewCollectionReview,
|
||||||
DesignDetail,
|
DesignDetail,
|
||||||
ExportNewCoolection,
|
ExportNewCoolection,
|
||||||
affiche,
|
affiche,
|
||||||
productImg,
|
productImg,
|
||||||
generalCanvas,
|
generalCanvas,
|
||||||
DesignDetailcopy
|
DesignDetailcopy,
|
||||||
},
|
},
|
||||||
emits:['setTask'],
|
emits: ["setTask"],
|
||||||
setup(props,{emit}) {
|
setup(props, { emit }) {
|
||||||
return {
|
return {};
|
||||||
|
},
|
||||||
};
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.homeView{
|
.homeView {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -97,7 +97,6 @@ export default defineConfig(({ mode }) => {
|
|||||||
assetsDir: "assets",
|
assetsDir: "assets",
|
||||||
// 分包策略
|
// 分包策略
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
input: path.resolve(__dirname, "public/index.html"),
|
|
||||||
output: {
|
output: {
|
||||||
manualChunks: {
|
manualChunks: {
|
||||||
vendor: ["vue", "vue-router", "vuex"],
|
vendor: ["vue", "vue-router", "vuex"],
|
||||||
|
|||||||
Reference in New Issue
Block a user