File size: 375 Bytes
e66cfb4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import dash 
from dash import Dash, html, dcc
from dash import Input, Output, State, callback, clientside_callback
import dash_mantine_components as dmc
from dash_iconify import DashIconify



def generate_main():
    return dmc.AppShellMain(
        children=[
            dcc.Location(id="page-url"),  # ✅ 放進 layout 中
            dash.page_container
        ]
    )