index.jsx 521 B

1234567891011121314151617
  1. import { lazy } from "solid-js";
  2. import { Routes, Route , hashIntegration } from "solid-app-router";
  3. const BigScreen = lazy(() => import("../pages/bigScreen/Home"))
  4. const CommonBigScreen = lazy(() => import("../pages/CommonBigScreen/Home"))
  5. export default function localRouter() {
  6. // 根据路由选择tab
  7. return <>
  8. <Routes source={hashIntegration()}>
  9. <Route path="/" element={<BigScreen />} />
  10. <Route path="/common" element={<CommonBigScreen />} />
  11. </Routes>
  12. </>
  13. }