fix
This commit is contained in:
parent
f16be1536c
commit
86d32e2723
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
use dioxus::prelude::*;
|
||||
use dioxus_material_icons::MaterialIcon;
|
||||
|
||||
use crate::{api::get_item, page::supply::SupplyPageParam, Route, TransactionCard};
|
||||
use crate::{api::get_item, page::supply::SupplyPageParam, try_recover_api, Route, TransactionCard};
|
||||
|
||||
#[component]
|
||||
pub fn ItemDetailPage(id: String) -> Element {
|
||||
|
@ -26,7 +26,7 @@ pub fn ItemDetailPage(id: String) -> Element {
|
|||
class: "flex items-start space-x-4",
|
||||
if let Some(image) = &item.image {
|
||||
img {
|
||||
src: crate::API.read().as_ref().unwrap().get_url_instance(image.to_string()),
|
||||
src: try_recover_api().get_url_instance(image.to_string()),
|
||||
width: "192",
|
||||
class: "h-24 w-24"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue