ปรับ workflow

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-10-17 13:36:53 +07:00
parent 619e93231c
commit 7eb2c0ce2f
3 changed files with 61 additions and 44 deletions

View file

@ -22,6 +22,7 @@ const id = ref<string>(
? ""
: route.params.id.toString()
); //id path
const files = ref<any>(); //
const tranferOrg = ref<string>(""); //
const noteReason = ref<string>(""); //
@ -48,11 +49,11 @@ async function createTransfer() {
formData.append("file", files.value);
await http
.post(config.API.listtransfer(), formData)
.then((res: any) => {
.then((res) => {
router.push(`/transfer/` + res.data.result);
success($q, "บันทึกข้อมูลสำเร็จ");
router.push(`/transfer`);
})
.catch((e: any) => {
.catch((e) => {
messageError($q, e);
})
.finally(() => {