fix: 修复扫一扫登录
Some checks failed
构建并部署前端到生产环境 / build-and-deploy (push) Failing after 20s

This commit is contained in:
sexygoat
2026-04-17 12:20:02 +08:00
parent 5f4a26e693
commit 40b8f76eef
7 changed files with 146 additions and 87 deletions

View File

@@ -2,26 +2,5 @@ import { defineConfig } from 'vite'
import uni from '@dcloudio/vite-plugin-uni'
export default defineConfig({
plugins: [
uni({
vueOptions: {
template: {
compilerOptions: {
// 保留微信 JSSDK 相关的全局变量
isCustomElement: (tag) => tag === 'wx'
}
}
}
})
],
build: {
rollupOptions: {
external: ['wx'],
output: {
globals: {
wx: 'wx'
}
}
}
}
plugins: [uni()],
})