From 996cb1447d6d79c0c0fea102efee21ca609e6021 Mon Sep 17 00:00:00 2001 From: unknown <1354427009@qq.com> Date: Wed, 7 Jun 2023 17:20:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20url=20false=E6=8B=BC?= =?UTF-8?q?=E6=8E=A5bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/.gitignore | 3 ++- .../views/system/menu/components/menuButton/crud.tsx | 10 ++++++++++ web/vite.config.ts | 4 ++-- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/web/.gitignore b/web/.gitignore index 403adbc..c6c57be 100644 --- a/web/.gitignore +++ b/web/.gitignore @@ -1,7 +1,8 @@ .DS_Store node_modules /dist - +package-lock.json +yarn.lock # local env files .env.local diff --git a/web/src/views/system/menu/components/menuButton/crud.tsx b/web/src/views/system/menu/components/menuButton/crud.tsx index 3972766..59dad16 100644 --- a/web/src/views/system/menu/components/menuButton/crud.tsx +++ b/web/src/views/system/menu/components/menuButton/crud.tsx @@ -34,6 +34,16 @@ export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOp }; return { crudOptions: { + search: { + container: { + action: { + //按钮栏配置 + col: { + span: 8 + } + } + }, + }, rowHandle: { //固定右侧 fixed: 'right', diff --git a/web/vite.config.ts b/web/vite.config.ts index 3a731aa..ab2a646 100644 --- a/web/vite.config.ts +++ b/web/vite.config.ts @@ -17,7 +17,7 @@ const alias: Record = { const viteConfig = defineConfig((mode: ConfigEnv) => { const env = loadEnv(mode.mode, process.cwd()); return { - plugins: [vue(), vueJsx(),vueSetupExtend()], + plugins: [vue(), vueJsx(), vueSetupExtend()], root: process.cwd(), resolve: { alias }, base: mode.command === 'serve' ? './' : env.VITE_PUBLIC_PATH, @@ -27,7 +27,7 @@ const viteConfig = defineConfig((mode: ConfigEnv) => { server: { host: '0.0.0.0', port: env.VITE_PORT as unknown as number, - open: env.VITE_OPEN, + open: true, hmr: true, proxy: { '/gitee': {