mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-12 09:18:14 +08:00
👌 fix(build): 修复打包 warn
This commit is contained in:
@@ -75,7 +75,7 @@ fn read_cookie() -> String {
|
|||||||
fn main() {
|
fn main() {
|
||||||
tauri::Builder::default()
|
tauri::Builder::default()
|
||||||
.invoke_handler(tauri::generate_handler![mys_login, read_cookie])
|
.invoke_handler(tauri::generate_handler![mys_login, read_cookie])
|
||||||
.setup(|app| {
|
.setup(|_app| {
|
||||||
tauri::async_runtime::spawn(
|
tauri::async_runtime::spawn(
|
||||||
rocket::build()
|
rocket::build()
|
||||||
.attach(Cors)
|
.attach(Cors)
|
||||||
@@ -84,7 +84,7 @@ fn main() {
|
|||||||
);
|
);
|
||||||
#[cfg(debug_assertions)] // only include this code on debug builds
|
#[cfg(debug_assertions)] // only include this code on debug builds
|
||||||
{
|
{
|
||||||
let window = app.get_window("tauri-genshin").unwrap();
|
let window = _app.get_window("tauri-genshin").unwrap();
|
||||||
window.open_devtools(); // open the devtools on startup
|
window.open_devtools(); // open the devtools on startup
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|||||||
Reference in New Issue
Block a user