LOCKING项目小程序端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

16 lines
556 B

  1. import { getFileUrl } from "@root/service/oss";
  2. import getData from "@root/utils/request";
  3. import * as storage from '@root/utils/storage';
  4. import { firstCharToLowerCase } from "@root/utils/tool";
  5. export async function fetchProjectList() {
  6. const accountId = storage.get('accountId');
  7. const res = await getData('project/queryProjectListByUserId', { userId: accountId });
  8. const dataList = (res.data || []).map(upperD => {
  9. const d = firstCharToLowerCase(upperD);
  10. d.showImgUrl = getFileUrl(d.showImgUrl);
  11. return d;
  12. });
  13. return dataList;
  14. }