feat(build): 添加生产环境构建命令并优化相关配置

- 在 package.json 中添加 build:prd命令用于生产环境构建
- 新增 .env.prd 文件配置生产环境变量
- 在 vue.config.js 中添加 CompressionPlugin 插件配置,启用 gzip 压缩
- 优化 home.vue 中的空白 p 标签,使用   替代空内容
This commit is contained in:
陈昱达
2025-07-09 20:24:02 +08:00
parent e3eb456a4d
commit abda23b641
4 changed files with 28 additions and 9 deletions

View File

@@ -119,19 +119,19 @@ export default {
<div class="flex">
<div class="service-item health">
<h4>健康管理</h4>
<p> </p>
<p>&nbsp;</p>
<button class="go-btn" @click="goEcosystem(1, true)">去看看</button>
</div>
<div class="flex flex-column">
<div class="service-item children">
<h4>子女教育</h4>
<p> </p>
<p>&nbsp;</p>
<button class="go-btn-v" @click="goEcosystem(38)">去看看</button>
</div>
<div class="service-item wealth">
<h4>财务管理</h4>
<p> </p>
<p>&nbsp;</p>
<button class="go-btn-v" @click="goEcosystem(48)">去看看</button>
</div>
</div>
@@ -142,14 +142,14 @@ export default {
<div class="service-item old">
<div>
<h4>养老服务</h4>
<p> </p>
<p>&nbsp;</p>
</div>
<button class="go-btn" @click="goEcosystem(28)">去看看</button>
</div>
<div class="service-item life">
<div>
<h4>生活娱乐</h4>
<p> </p>
<p>&nbsp;</p>
</div>
<button class="go-btn" @click="goEcosystem(55)">去看看</button>
</div>
@@ -454,13 +454,13 @@ $bg-color: #f5f5f5;
}
.flex {
&.flex-column {
flex-flow: column nowrap;
flex-flow: column nowrap;
width: 65%;
gap: 4vw;
}
&.service-row {
gap: 10px;
gap: 10px;
margin-top: -20px;
justify-content: center;
align-items: center;