From 38f9e74cdf6e1da48ba17adabd1a7fa8839262f8 Mon Sep 17 00:00:00 2001 From: wangxuefeng Date: Thu, 6 Feb 2025 11:54:13 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20antd=20=E5=85=A8=E5=B1=80=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E7=B4=A7=E5=87=91=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- farm.config.ts | 25 +------ package.json | 2 +- pnpm-lock.yaml | 16 ++++- src/App.vue | 12 +++- src/router/routes.ts | 2 +- src/views/config-manage/module-cfg/config.ts | 57 ++++++++------- src/views/config-manage/module-cfg/index.vue | 2 +- .../page-info/{index,.vue => index.vue} | 4 +- vite.config.ts | 69 ++++++++++--------- 9 files changed, 99 insertions(+), 90 deletions(-) rename src/views/page-show-info/page-info/{index,.vue => index.vue} (99%) diff --git a/farm.config.ts b/farm.config.ts index e34d0ad..0e21653 100644 --- a/farm.config.ts +++ b/farm.config.ts @@ -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: { diff --git a/package.json b/package.json index b3f2080..de12e5d 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "@farmfe/js-plugin-less": "^1.12.1", "@sy/y-code-chart": "^1.2.1", "@vueuse/core": "^10.11.0", - "ant-design-vue": "^4.1.2", + "ant-design-vue": "^4.2.6", "axios": "^1.6.7", "core-js": "^3.40.0", "cross-env": "^7.0.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 024236c..6498c1c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -24,7 +24,7 @@ importers: specifier: ^10.11.0 version: 10.11.1(vue@3.5.13(typescript@5.3.3)) ant-design-vue: - specifier: ^4.1.2 + specifier: ^4.2.6 version: 4.2.6(vue@3.5.13(typescript@5.3.3)) axios: specifier: ^1.6.7 @@ -564,12 +564,14 @@ packages: engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [glibc] '@farmfe/core-linux-x64-musl@1.6.6': resolution: {integrity: sha512-h8FoBNbe5LoYZrq27JriaS6JJJHK9sc92jKOTrNes5u1qixw5GAPgMq4smq97koEkOwPaQfueQUTfa8pHiIg1Q==} engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [musl] '@farmfe/core-win32-arm64-msvc@1.6.6': resolution: {integrity: sha512-X4gIoSwbPmf0Lx0ZLC5dzcOm4DZR+4i+7u4sF3f7jb95GQuWR6vF1L6tk6IY5ftyaz8xFuFcDpd6WO2km+VMwQ==} @@ -792,46 +794,55 @@ packages: resolution: {integrity: sha512-WXveUPKtfqtaNvpf0iOb0M6xC64GzUX/OowbqfiCSXTdi/jLlOmH0Ba94/OkiY2yTGTwteo4/dsHRfh5bDCZ+w==} cpu: [arm] os: [linux] + libc: [glibc] '@rollup/rollup-linux-arm-musleabihf@4.28.0': resolution: {integrity: sha512-yLc3O2NtOQR67lI79zsSc7lk31xjwcaocvdD1twL64PK1yNaIqCeWI9L5B4MFPAVGEVjH5k1oWSGuYX1Wutxpg==} cpu: [arm] os: [linux] + libc: [musl] '@rollup/rollup-linux-arm64-gnu@4.28.0': resolution: {integrity: sha512-+P9G9hjEpHucHRXqesY+3X9hD2wh0iNnJXX/QhS/J5vTdG6VhNYMxJ2rJkQOxRUd17u5mbMLHM7yWGZdAASfcg==} cpu: [arm64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-arm64-musl@4.28.0': resolution: {integrity: sha512-1xsm2rCKSTpKzi5/ypT5wfc+4bOGa/9yI/eaOLW0oMs7qpC542APWhl4A37AENGZ6St6GBMWhCCMM6tXgTIplw==} cpu: [arm64] os: [linux] + libc: [musl] '@rollup/rollup-linux-powerpc64le-gnu@4.28.0': resolution: {integrity: sha512-zgWxMq8neVQeXL+ouSf6S7DoNeo6EPgi1eeqHXVKQxqPy1B2NvTbaOUWPn/7CfMKL7xvhV0/+fq/Z/J69g1WAQ==} cpu: [ppc64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-riscv64-gnu@4.28.0': resolution: {integrity: sha512-VEdVYacLniRxbRJLNtzwGt5vwS0ycYshofI7cWAfj7Vg5asqj+pt+Q6x4n+AONSZW/kVm+5nklde0qs2EUwU2g==} cpu: [riscv64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-s390x-gnu@4.28.0': resolution: {integrity: sha512-LQlP5t2hcDJh8HV8RELD9/xlYtEzJkm/aWGsauvdO2ulfl3QYRjqrKW+mGAIWP5kdNCBheqqqYIGElSRCaXfpw==} cpu: [s390x] os: [linux] + libc: [glibc] '@rollup/rollup-linux-x64-gnu@4.28.0': resolution: {integrity: sha512-Nl4KIzteVEKE9BdAvYoTkW19pa7LR/RBrT6F1dJCV/3pbjwDcaOq+edkP0LXuJ9kflW/xOK414X78r+K84+msw==} cpu: [x64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-x64-musl@4.28.0': resolution: {integrity: sha512-eKpJr4vBDOi4goT75MvW+0dXcNUqisK4jvibY9vDdlgLx+yekxSm55StsHbxUsRxSTt3JEQvlr3cGDkzcSP8bw==} cpu: [x64] os: [linux] + libc: [musl] '@rollup/rollup-win32-arm64-msvc@4.28.0': resolution: {integrity: sha512-Vi+WR62xWGsE/Oj+mD0FNAPY2MEox3cfyG0zLpotZdehPFXwz6lypkGs5y38Jd/NVSbOD02aVad6q6QYF7i8Bg==} @@ -1691,18 +1702,21 @@ packages: engines: {node: '>= 10'} cpu: [arm64] os: [linux] + libc: [glibc] farm-plugin-replace-dirname-linux-arm64-musl@0.2.1: resolution: {integrity: sha512-m3gH8ggczbRYTHZSNp3LjIQIcqhvDO4O78bxXc8O1ozKD8M47/YfQLyQV06M7H4rZ8s6XV3Bb1kAcRAASp3M5A==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] + libc: [glibc] farm-plugin-replace-dirname-linux-x64-gnu@0.2.1: resolution: {integrity: sha512-MehKkoM2RFw3sCnEu9nCbXKjxtC3hfTad0h/dC+Z8iEBcLEReVLoNzHWWUa6BxkxqDtB82/BWO/ObSUj/VUnwQ==} engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [glibc] farm-plugin-replace-dirname-linux-x64-musl@0.2.1: resolution: {integrity: sha512-o1qPZi16N/sHOteZYJVv6UmZFK3QKpVQrywk/4spJI0mPH9A9Y+G6iBE2Tqjb3d+1Hb6phr++EBJHZ2x1ajtGQ==} diff --git a/src/App.vue b/src/App.vue index 776301e..bf03e74 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,6 @@