fix 修复 路由参数缓存导致分页错误

dev
疯狂的狮子Li 4 months ago
parent 4c607f6915
commit e10ef50288

@ -22,7 +22,10 @@ export interface FlowDefinitionForm {
flowName: string; flowName: string;
flowCode: string; flowCode: string;
category: string; category: string;
ext: string;
formPath: string; formPath: string;
formCustom: string;
modelValue: string;
} }
export interface definitionXmlVO { export interface definitionXmlVO {

@ -353,6 +353,7 @@ const getPageList = async () => {
const query = proxy.$route.query; const query = proxy.$route.query;
if (query.activeName) { if (query.activeName) {
activeName.value = query.activeName; activeName.value = query.activeName;
proxy.$route.query.activeName = '';
} }
if (activeName.value === '0') { if (activeName.value === '0') {
getList(); getList();
@ -526,6 +527,7 @@ const handleSubmit = async () => {
await edit(form.value).finally(() => (loading.value = false)); await edit(form.value).finally(() => (loading.value = false));
} else { } else {
await add(form.value).finally(() => (loading.value = false)); await add(form.value).finally(() => (loading.value = false));
activeName.value = '1';
} }
proxy?.$modal.msgSuccess('操作成功'); proxy?.$modal.msgSuccess('操作成功');
modelDialog.visible = false; modelDialog.visible = false;

Loading…
Cancel
Save