chore: antd 全局改为紧凑布局

This commit is contained in:
wangxuefeng
2025-02-06 11:54:13 +08:00
parent 2cc93d4262
commit 38f9e74cdf
9 changed files with 99 additions and 90 deletions

View File

@@ -4,7 +4,6 @@ import vueJsx from "@vitejs/plugin-vue-jsx";
import qiankun from "vite-plugin-qiankun";
import path from "path";
import less from "@farmfe/js-plugin-less";
import yargsParser from "yargs-parser";
import Components from "unplugin-vue-components/vite";
import { AntDesignVueResolver } from "unplugin-vue-components/resolvers";
@@ -15,26 +14,7 @@ import { AntDesignVueResolver } from "unplugin-vue-components/resolvers";
// TEST: "test",
// };
const argv = yargsParser(process.argv.slice(2));
const env = process.env.NODE_ENV;
console.log("argv", argv);
console.log("env", env);
// let base: string;
// switch (argv.mode) {
// case "staging":
// case "test":
// base = "https://custom-chart.shiyue.com/";
// break;
// case "production":
// base = "https://custom-chart.shiyuegame.com/";
// break;
// default:
// base = "http://localhost:8080/";
// }
// if (env === ENVS.DEVELOPMENT) base = "http://localhost:8080/";
// console.log("base", base);
// const env = process.env.NODE_ENV;
export default defineConfig({
plugins: [less()],
@@ -54,8 +34,7 @@ export default defineConfig({
],
server: {
cors: true,
open: false,
port: 8080,
open: true,
},
compilation: {
resolve: {