diff --git a/template/nestJs/package.json b/template/nestJs/package.json index b724015e..63c70baf 100644 --- a/template/nestJs/package.json +++ b/template/nestJs/package.json @@ -69,7 +69,7 @@ "@typescript-eslint/eslint-plugin": "7.18.0", "@typescript-eslint/parser": "7.18.0", "cross-env": "^7.0.3", - "eslint": "8.42.0", + "eslint": "8.57.0", "eslint-config-prettier": "8.8.0", "eslint-plugin-import": "2.27.5", "express": "^4.21.2", diff --git a/template/nestJs/src/generateMigration.ts b/template/nestJs/src/generateMigration.ts index 4a2d245d..4acdc7d0 100644 --- a/template/nestJs/src/generateMigration.ts +++ b/template/nestJs/src/generateMigration.ts @@ -64,7 +64,7 @@ export const generateMigration = async ( const config = await prettier.resolveConfig(process.cwd()); - const formatted = prettier.format(code, { + const formatted = await prettier.format(code, { ...config, parser: 'babel-ts', }); diff --git a/template/tinyvue/.env b/template/tinyvue/.env index 47381f2d..101d78f6 100644 --- a/template/tinyvue/.env +++ b/template/tinyvue/.env @@ -1,9 +1,9 @@ VITE_CONTEXT=/vue-pro/ VITE_BASE_API=/api -VITE_SERVER_HOST= http://127.0.0.1:3000 -VITE_MOCK_HOST= http://127.0.0.1:8848 -VITE_USE_MOCK= false -VITE_MOCK_IGNORE= /api/user/userInfo,/api/user/login,/api/user/register,/api/employee/getEmployee +VITE_SERVER_HOST=http://127.0.0.1:3000 +VITE_MOCK_HOST=http://127.0.0.1:8848 +VITE_USE_MOCK=false +VITE_MOCK_IGNORE=/api/user/userInfo,/api/user/login,/api/user/register,/api/employee/getEmployee VITE_MOCK_SERVER_HOST=/mock VITE_BASE=/ diff --git a/template/tinyvue/config/vite.config.dev.ts b/template/tinyvue/config/vite.config.dev.ts index 9e47f0db..a912beb7 100644 --- a/template/tinyvue/config/vite.config.dev.ts +++ b/template/tinyvue/config/vite.config.dev.ts @@ -17,11 +17,6 @@ const proxyConfig = { target: env.VITE_SERVER_HOST, changeOrigin: true, logLevel: 'debug', - rewrite: (path: string) => - path.replace( - new RegExp(`${env.VITE_BASE_API}`), - '', - ), }, [env.VITE_MOCK_SERVER_HOST]: { target: env.VITE_SERVER_HOST, diff --git a/template/tinyvue/package.json b/template/tinyvue/package.json index f09acb10..a18103b3 100644 --- a/template/tinyvue/package.json +++ b/template/tinyvue/package.json @@ -36,7 +36,7 @@ "@opentiny/vue-icon": "~3.28.0", "@opentiny/vue-locale": "~3.28.0", "@opentiny/vue-search-box": "^0.1.3", - "@opentiny/vue-theme": "~3.28.0", + "@opentiny/vue-theme": "~3.29.0", "@vueuse/core": "^10.11.1", "@vueuse/head": "^2.0.0", "axios": "^1.8.0",