feat: add console_error_panic_hook

This commit is contained in:
luoxiao 2024-07-29 17:03:17 +08:00
parent a242b307af
commit 68659411b9
2 changed files with 6 additions and 0 deletions

View file

@ -18,6 +18,9 @@ chrono = "0.4.33"
cfg-if = "1.0.0" cfg-if = "1.0.0"
# leptos-use = "0.10.10" # leptos-use = "0.10.10"
send_wrapper = "0.6" send_wrapper = "0.6"
console_error_panic_hook = "0.1.7"
console_log = "1"
log = "0.4"
[features] [features]
default = ["csr"] default = ["csr"]

View file

@ -6,5 +6,8 @@ use app::App;
use leptos::prelude::*; use leptos::prelude::*;
fn main() { fn main() {
let _ = console_log::init_with_level(log::Level::Debug);
console_error_panic_hook::set_once();
mount_to_body(App) mount_to_body(App)
} }