From 8857c94cca06db389c279582e25ccd7d8f1e3fe2 Mon Sep 17 00:00:00 2001 From: sophie <16087569+sophie_liang@user.noreply.gitee.com> Date: Tue, 14 Apr 2026 17:21:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9IOS15?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/vite.config.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index deaac836..676fff1d 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -5,6 +5,11 @@ import vue from '@vitejs/plugin-vue' // https://vite.dev/config/ export default defineConfig({ plugins: [vue()], + build: { + // Keep production bundle compatible with iOS 15 Safari/WebKit. + target: ['es2020', 'safari15', 'ios15'], + cssTarget: ['safari15', 'ios15'] + }, server: { port: 8881, // 前端开发端口,实际上我们会用 Nginx 反代,但本地开发先改这个方便 proxy: {