fix workflow

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-10-21 15:37:18 +07:00
parent aa987f839c
commit 32da0e7107
5 changed files with 86 additions and 30 deletions

View file

@ -18,6 +18,7 @@ const modal = defineModel<boolean>("modal", { required: true });
const props = defineProps({
stateId: { type: String, require: true },
fetchData: { type: Function, require: true },
type: { type: String, require: true },
});
/** table*/
@ -72,7 +73,7 @@ const isReasonSetting = ref<boolean>(false);
async function fetchLists() {
showLoader();
await http
.get(config.API.workflow + `commander`)
.get(config.API.workflow + `commander/${props.type}`)
.then(async (res) => {
rows.value = res.data.result;
})