Commit 265c5ac1 by lei

1

parent b37a71d4
No preview for this file type
...@@ -62,8 +62,6 @@ export default defineNuxtConfig({ ...@@ -62,8 +62,6 @@ export default defineNuxtConfig({
envDir: "~/env", envDir: "~/env",
build: { build: {
minify: "terser", // 混淆器,terser构建后文件体积更小 minify: "terser", // 混淆器,terser构建后文件体积更小
// 构建后是否生成 source map 文件
// sourcemap: 'hidden',
cssCodeSplit: true, // 如果设置为false,整个项目中的所有 CSS 将被提取到一个 CSS 文件中 cssCodeSplit: true, // 如果设置为false,整个项目中的所有 CSS 将被提取到一个 CSS 文件中
terserOptions: { terserOptions: {
compress: { compress: {
...@@ -94,8 +92,6 @@ export default defineNuxtConfig({ ...@@ -94,8 +92,6 @@ export default defineNuxtConfig({
process.env.NODE_ENV === "production" process.env.NODE_ENV === "production"
? ["tdesign-vue-next", "echarts", "vue-i18n"] ? ["tdesign-vue-next", "echarts", "vue-i18n"]
: ["echarts"], : ["echarts"],
// 可视化捆绑包分析--目前无效
// analyze: true,
}, },
css: ["@/style/font-family.css"], css: ["@/style/font-family.css"],
}); });
...@@ -127,19 +127,14 @@ import SubmitSocialInfo from "./SubmitSocialInfo.vue"; ...@@ -127,19 +127,14 @@ import SubmitSocialInfo from "./SubmitSocialInfo.vue";
import Collection from "./Collection.vue"; import Collection from "./Collection.vue";
import Animation from "@/components/Animation.vue"; import Animation from "@/components/Animation.vue";
import { vDelayHide } from "@/utils/plugin/ShowPlugin"; import { vDelayHide } from "@/utils/plugin/ShowPlugin";
let DetailsEcharts: any = null;
// 异步组件 // 异步组件
if (process.client) { const DetailsEcharts = defineAsyncComponent(
DetailsEcharts = defineAsyncComponent( () => import("../analysis/detailsEcharts.vue")
() => import("../analysis/detailsEcharts.vue") );
);
}
const router = useRouter(); const router = useRouter();
const { t, locale } = useI18n(); const { t, locale } = useI18n();
// 通知表格收藏图表取消收藏 // 通知表格收藏图表取消收藏
const CollectionDe = CollectionDelete(); const CollectionDe = CollectionDelete();
// 是否加载折线图
// const initEchart = computed(() => store.getters['echart/gethasInit']);
const headerBtns = computed(() => [ const headerBtns = computed(() => [
{ {
label: t("securityCheck.details"), label: t("securityCheck.details"),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment