index.tsx 326 B

12345678910
  1. import { useModel } from '@umijs/max'
  2. import Douyin from './Douyin'
  3. import WeChat from './WeChat'
  4. function Index() {
  5. let { selectApp }: any = useModel("@@initialState", (model) => ({
  6. selectApp: model.initialState?.selectApp
  7. }))
  8. return selectApp?.appType == 1? <WeChat /> : <Douyin />
  9. }
  10. export default Index