Parcourir la source

Fix 修复打包发布后按钮样式异常的问题

YueYunyun il y a 2 ans
Parent
commit
72b4c0f535

+ 1 - 0
.gitignore

@@ -65,3 +65,4 @@ build/
 /UI/dist
 /UI/**/dist.rar
 
+UI/XYH.APP/package-lock.json

+ 3 - 0
UI/XYH.VUE/src/assets/sass/_common.scss

@@ -83,3 +83,6 @@ dl {
 		}
 	}
 }
+.el-button.btn {
+	display: inline-flex !important;
+}

+ 1 - 1
UI/XYH.VUE/src/views/amActivity/alumnus/index.vue

@@ -79,7 +79,7 @@ const opts = reactive({
 		{ field: "auditStatus", name: "审核状态", visible: true, isSort: true, width: 100 },
 		{ field: "auditUser", name: "审核人", visible: true, width: 100 },
 		{ field: "auditTime", name: "审核时间", visible: true, isSort: true, width: 150 },
-		{ field: "actions", name: `操作`, width: 130 }
+		{ field: "actions", name: `操作`, width: 160 }
 	],
 	queryParams: {
 		name: undefined,

+ 6 - 2
UI/XYH.VUE/vite.config.ts

@@ -47,10 +47,14 @@ export default defineConfig(({ mode, command }) => {
 							// 通过拆分包的方式将所有来自node_modules的模块打包到单独的chunk中
 							return "vb_plugin_vendor"
 						}
-						// 将pinia的全局库单独打包,避免和页面一起打包造成资源重复引入
-						if (id.includes(resolve(__dirname, "/src/stores/index.ts"))) {
+						// 将全局库单独打包,避免和页面一起打包造成资源重复引入
+						if (id.includes("/src/stores/")) {
 							return "vb_store"
 						}
+						if (id.includes("/src/api/")) {
+							return "vb_api"
+						}
+
 						// if (id.includes("/src/components/") && id.includes("/Vb")) {
 						// 	return "vb_components"
 						// }