From 9f27feb06a66e1277b40933b35cd52eb595da6f1 Mon Sep 17 00:00:00 2001 From: liu9293 Date: Wed, 12 Jul 2023 21:59:50 +0900 Subject: [PATCH] update --- README.md | 2 +- packages/client/src/components/header.rs | 12 ++++++++---- packages/client/src/main.rs | 14 +++++++------- 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 1c96f99..2a1182f 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ cargo run -p server // web dioxus serve --platform web -// desktop +// desktop, desktop router is not working, try to exclude router for desktop dioxus serve --platform desktop ``` diff --git a/packages/client/src/components/header.rs b/packages/client/src/components/header.rs index 5fa65b1..1c22d41 100644 --- a/packages/client/src/components/header.rs +++ b/packages/client/src/components/header.rs @@ -1,7 +1,7 @@ use dioxus::prelude::*; use dioxus::html::MouseEvent; use fermi::*; -// use dioxus_router::Link; +use dioxus_router::Link; use dioxus_html_macro::html; use shared::translate::TRANSLATION; @@ -85,13 +85,17 @@ pub fn Header(cx: Scope) -> Element { cx.render(html!(