api.ts 639 B

12345678910111213141516171819202122232425
  1. import request from "../../../utils/request";
  2. import { storeData } from "/src/store";
  3. import { getQuery } from "/src/utils/queryString";
  4. const query: any = getQuery();
  5. export const setGuidance = (params: any) => {
  6. // 内容平台无需调用该接口
  7. return query.isCbs ? {} : request.post('/functionGuidance/save', {
  8. data: params,
  9. requestType: "json",
  10. });
  11. };
  12. /**
  13. * 获取引导页
  14. */
  15. export const getGuidance = (params: any) => {
  16. return storeData.platformApi == "/cbs-app" ? { data: null } : request.get('/functionGuidance/queryTagDetail', {
  17. data: params,
  18. params,
  19. });
  20. };