mirror of
https://github.com/SECTL/SecScore.git
synced 2026-07-19 19:04:23 +08:00
fix: 修复安卓真机开发版连接与编译问题
This commit is contained in:
@@ -100,7 +100,7 @@ pub async fn toggle_devtools(
|
|||||||
let _ = app;
|
let _ = app;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(all(debug_assertions, desktop))]
|
||||||
if let Some(window) = app.get_webview_window("main") {
|
if let Some(window) = app.get_webview_window("main") {
|
||||||
if window.is_devtools_open() {
|
if window.is_devtools_open() {
|
||||||
window.close_devtools();
|
window.close_devtools();
|
||||||
|
|||||||
@@ -18,8 +18,16 @@ export default defineConfig({
|
|||||||
emptyOutDir: true,
|
emptyOutDir: true,
|
||||||
},
|
},
|
||||||
server: {
|
server: {
|
||||||
|
host: process.env.TAURI_DEV_HOST || false,
|
||||||
port: 1420,
|
port: 1420,
|
||||||
strictPort: true,
|
strictPort: true,
|
||||||
|
hmr: process.env.TAURI_DEV_HOST
|
||||||
|
? {
|
||||||
|
protocol: "ws",
|
||||||
|
host: process.env.TAURI_DEV_HOST,
|
||||||
|
port: 1421,
|
||||||
|
}
|
||||||
|
: undefined,
|
||||||
},
|
},
|
||||||
clearScreen: false,
|
clearScreen: false,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user