mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-23 04:33:06 +00:00
fix path of set_server_url (#2314)
Co-authored-by: =Chung Wong <=wch705@gmail.com>
This commit is contained in:
parent
b6d3da2b31
commit
c9ab09b348
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue