邃芒慧语、照片说话(PC) https://photo.metavatar.cc/
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
393 B

  1. /**
  2. * @description:根据状态返回状态名
  3. * @param {number} status
  4. * @return: statusName
  5. */
  6. export const getStatus = status => {
  7. if (status == 0) {
  8. return "draft"
  9. } else if (status == 1 || status == 2 || status == 4 || status == 6) {
  10. return "generating"
  11. } else if (status == 3) {
  12. return "generationFailed"
  13. } else if (status == 5) {
  14. return "generationSucceed"
  15. }
  16. }