123
This commit is contained in:
@@ -74,7 +74,9 @@ import {flowNameOptions} from '/@/hooks/enums';
|
||||
import {addTemplate, getUserDeptBelong} from "/@/api/common";
|
||||
import {templateStore} from "/@/stores/template";
|
||||
import type {FormInstance, FormRules} from "element-plus";
|
||||
import {useRouter} from "vue-router";
|
||||
|
||||
const router = useRouter();
|
||||
const temp = templateStore();
|
||||
const props = defineProps({
|
||||
isUpdate: {
|
||||
@@ -308,6 +310,7 @@ const handleInitiateApproval = async () => {
|
||||
message.success(t('common.success'));
|
||||
resetHeaderForm();
|
||||
resetProjectForm();
|
||||
await router.push('/flow/task/started')
|
||||
}
|
||||
} catch (error: any) {
|
||||
message.error(error?.msg || error?.message || t('common.fail'));
|
||||
|
||||
Reference in New Issue
Block a user