No Description

index.ts 569B

12345678910111213141516171819202122
  1. import React from 'react';
  2. import { LIMIT } from "@components/comment/config/constant";
  3. // const DEFAULT_TYPE = 1;
  4. // const DEFAULT_BUSSINESSID = 'test';
  5. // const DEFAULT_BUSSINESS_USER_ID = 4;
  6. // const DEFAULT_PAGE = 1;
  7. // const DEFAULT_LIMIT = LIMIT;
  8. export const DefaultValue = {
  9. type: 3,
  10. bussiness_id: '5ea8320dedd68200018e733d',
  11. bussiness_user_id: 4,
  12. page: 1,
  13. limit: LIMIT,
  14. locale: 'zh',
  15. currentUser: null,
  16. }
  17. // type=3&business_id=5ea8320dedd68200018e733d&is_speak=0&page=1&limit=10
  18. export const CommentContext = React.createContext(DefaultValue)