feat: 更新capacitor配置,添加服务器设置以支持HTTP连接

This commit is contained in:
2025-12-16 15:56:43 +07:00
parent d9ee6a5662
commit 20fc071ebb
2 changed files with 4 additions and 32 deletions

View File

@@ -4,6 +4,10 @@ const config: CapacitorConfig = {
appId: "io.ionic.starter",
appName: "riwa-ionic",
webDir: "dist",
server: {
url: "http://localhost:5173", // Vite默认端口
cleartext: true, // 允许HTTP连接
},
};
export default config;