fn main() -> Result<()> {
mutils::init();
let _ = tauri::Builder::default()
.setup(|app| {
let mut pb=PathBuf::new();
pb.push(&CFG.system.login_domain);
let local_window: tauri::Window =
tauri::WindowBuilder::new(app, "local", tauri::WindowUrl::App("index.html".into()))
.build()?;
let main_window: tauri::Window = tauri::WindowBuilder::new(
app,
"main",
tauri::WindowUrl::App(pb),
)
.build()?;
main_window
.with_webview(move |_webview| unsafe {
let core = _webview.controller().CoreWebView2().unwrap();
let corem=core.clone();
1
共 1 条评论, 1 页
评论区
写评论--
👇
github.com/shanliu/lsys: 建议先把文档看下,文档上都写.