fix(platform): harden auth and build integration

This commit is contained in:
zhaowei.huang
2026-06-08 18:17:42 +08:00
parent 57b97a0bfe
commit 7ed1e2603b
3 changed files with 15 additions and 5 deletions
@@ -5,12 +5,16 @@ import Components from 'unplugin-vue-components/vite'
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
import { fileURLToPath, URL } from 'node:url'
export default defineConfig({
export default defineConfig(({ command }) => ({
base: '/',
plugins: [
vue(),
AutoImport({ resolvers: [ElementPlusResolver()] }),
Components({ resolvers: [ElementPlusResolver()] })
// 生产构建时跳过 components.d.ts 生成,避免 Windows 下并发写文件触发 UNKNOWN 错误。
Components({
resolvers: [ElementPlusResolver()],
dts: command === 'serve'
})
],
resolve: {
alias: {
@@ -33,4 +37,4 @@ export default defineConfig({
sourcemap: false,
chunkSizeWarningLimit: 1500
}
})
}))