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.
|
- /**
- * @description:根据状态返回状态名
- * @param {number} status
- * @return: statusName
- */
- export const getStatus = status => {
- if (status == 0) {
- return "draft"
- } else if (status == 1 || status == 2 || status == 4 || status == 6) {
- return "generating"
- } else if (status == 3) {
- return "generationFailed"
- } else if (status == 5) {
- return "generationSucceed"
- }
- }
|