Преглед изворни кода

fix path of set_server_url (#2314)

Co-authored-by: =Chung Wong <=wch705@gmail.com>
Chung пре 1 година
родитељ
комит
c9ab09b348
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      packages/fullstack/examples/axum-desktop/src/client.rs

+ 1 - 1
packages/fullstack/examples/axum-desktop/src/client.rs

@@ -8,7 +8,7 @@ use axum_desktop::*;
 fn main() {
     // Set the url of the server where server functions are hosted.
     #[cfg(not(feature = "server"))]
-    dioxus::fullstack::prelude::server_fn::set_server_url("http://127.0.0.1:8080");
+    dioxus::fullstack::prelude::server_fn::client::set_server_url("http://127.0.0.1:8080");
 
     #[cfg(feature = "desktop")]
     dioxus::prelude::launch_desktop(app)