fix(share): wxacodeUrl 改用 useRef 避免压缩后引用丢失

This commit is contained in:
2026-07-08 19:15:06 +08:00
parent 501201e81d
commit 832b97d68e
2 changed files with 16 additions and 10 deletions

View File

@@ -28,6 +28,11 @@ export default defineConfig(({ mode }) => {
// File types to support raw imports. Never add .css, .tsx, or .ts files to this.
assetsInclude: ['**/*.svg', '**/*.csv'],
build: {
// 使用 esbuild 代替 terser 避免变量名 mangling 导致 ReferenceError
minify: 'esbuild',
},
server: {
host: '0.0.0.0',
allowedHosts: ['.trycloudflare.com', '.loca.lt'],