แก้ convertCronToForm

This commit is contained in:
Net 2024-07-19 14:33:29 +07:00
parent 16c02a817a
commit efe4fd5950

View file

@ -208,8 +208,6 @@ export const useDataStore = defineStore("systemStore", () => {
}
}
console.log(allValues);
if (typeReturn === "time") {
if (allValues[2].includes("/")) {
console.log(allValues[2]);
@ -224,7 +222,16 @@ export const useDataStore = defineStore("systemStore", () => {
}
if (typeReturn === "date") {
return `${allValues[5].split(",")}`;
if (!allValues[3].includes("*")) {
const tempValue = allValues[3].split(",").join(" ");
return `${tempValue}`;
}
if (!allValues[5].includes("*")) {
const tempValue = allValues[5].split(",").join(" ");
return `${tempValue}`;
}
}
return "";
@ -246,6 +253,7 @@ export const useDataStore = defineStore("systemStore", () => {
timeStartEvery:
convertCronToForm(item.schedule, "timeStartEvery") || "",
startAt: item.startAt,
enabled: item.enabled,
};
});