diff --git a/apps/frontend/capacitor.config.ts b/apps/frontend/capacitor.config.ts index 6d8c60f..2144708 100644 --- a/apps/frontend/capacitor.config.ts +++ b/apps/frontend/capacitor.config.ts @@ -1,9 +1,13 @@ import type { CapacitorConfig } from '@capacitor/cli'; +// 开发阶段:使用 http,避免 WebView https 与 http API 的混合内容被拦截 const config: CapacitorConfig = { appId: 'com.bill.ai', appName: '智能记账', - webDir: 'dist' + webDir: 'dist', + server: { + androidScheme: 'http' + } }; export default config;