瀏覽代碼

fix(core): `window > create` endpoint

Lucas Nogueira 3 年之前
父節點
當前提交
3f45c23a75
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/tauri/src/endpoints/window.rs

+ 1 - 1
core/tauri/src/endpoints/window.rs

@@ -170,7 +170,7 @@ impl Cmd {
     let label = options.label.clone();
     let url = options.url.clone();
 
-    let mut builder = context.window.builder(label, url);
+    let mut builder = crate::window::Window::builder(&context.window, label, url);
     builder.window_builder = <<R::Dispatcher as Dispatch>::WindowBuilder>::with_config(*options);
     builder.build().map_err(crate::error::into_anyhow)?;