1234567891011 |
- import { useModel } from '@umijs/max'
- import LongPage from './Long'
- import ShortPage from './Short'
- function Index() {
- let { selectApp }: any = useModel("@@initialState", (model) => ({
- selectApp: model.initialState?.selectApp
- }))
- // 临时条件后期从selectApp中获取参数判断小程序是长篇还是短篇
- return selectApp?.id % 2 !== 0 ? <LongPage /> : <ShortPage />
- }
- export default Index
|