Skip to content

Commit 399beca

Browse files
committed
fix:修复刷新页面时logo加载失败的bug
1 parent 8ae012d commit 399beca

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • dash-fastapi-frontend/views/layout/components

dash-fastapi-frontend/views/layout/components/aside.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import feffery_antd_components as fac
2+
import dash
23

34
import callbacks.layout_c.aside_c
45

@@ -14,7 +15,7 @@ def render_aside_content(menu_info):
1415
fac.AntdImage(
1516
width=32,
1617
height=32,
17-
src='assets/imgs/logo.png',
18+
src=dash.get_asset_url('imgs/logo.png'),
1819
preview=False,
1920
),
2021
flex='1',

0 commit comments

Comments
 (0)