diff --git a/.github/changelog.md b/.github/changelog.md deleted file mode 100644 index 11ec3bcab7..0000000000 --- a/.github/changelog.md +++ /dev/null @@ -1,17 +0,0 @@ -## v4.3.11 - -`2024-07-05` - -Bug Fixes - -- range: 修复 range-component 在百度小程序下点击获取元素位置信息报错 (#3123) @daiwanxing -- range: 修复设置 step 时未考虑 min 值的处理 (#3111) @daiwanxing -- calendarcard: 修复 ios 端设置 disableDay 不生效问题 (#3122) @irisSong - -Features - -- tabbar: add prop before-switch (#3060) @eiinu -- picker: 为当前选中的 picker-roller-item 新增类名 (#3127) @AnxysUaen - -- -> [CHANGELOG](https://github.com/jdf2e/nutui/blob/v4/CHANGELOG.md) diff --git a/vite.config.ts b/vite.config.ts index edd91b4d35..d3acd526f5 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,5 +1,5 @@ /// -import { defineConfig } from 'vite' +import { type ConfigEnv, defineConfig, type UserConfig } from 'vite' import vue from '@vitejs/plugin-vue' import vueJsx from '@vitejs/plugin-vue-jsx' import path from 'path' @@ -9,8 +9,8 @@ import VueDevTools from 'vite-plugin-vue-devtools' import { markdown } from '@nutui/vite-plugins' const resolve = path.resolve // https://vitejs.dev/config/ -export default defineConfig({ - base: '/', +export default defineConfig((env: ConfigEnv) => ({ + base: env.command === 'build' ? '/h5/vue/4x/' : '/', resolve: { alias: [ { find: '@', replacement: resolve(__dirname, './src') }, @@ -73,4 +73,4 @@ export default defineConfig({ include: ['src/packages/__VUE/**/*.(test|spec).(ts|tsx)'], reporters: ['default', 'html'] } -}) +}) as UserConfig)