|
|
@@ -254,7 +254,18 @@ import businessTripComponent from '@/BIZComponents/processSubmitDialog/component
|
|
|
if (this.isStockBatchChange() && (!router || invalidViewRouter)) {
|
|
|
return '/bpm/handleTask/components/stockBatchChange/detailDialog.vue';
|
|
|
}
|
|
|
- const path = String(router || '').trim();
|
|
|
+ const businessKey = String(
|
|
|
+ this.form.businessKey ||
|
|
|
+ this.form.processDefinitionKey ||
|
|
|
+ this.form.processInstance?.processDefinitionId?.split(':')[0] ||
|
|
|
+ this.form.processInstance?.processDefinition?.key ||
|
|
|
+ ''
|
|
|
+ );
|
|
|
+ const fallback =
|
|
|
+ businessKey === 'contact_approve'
|
|
|
+ ? '/bpm/handleTask/components/contact/contactDetailDialog.vue'
|
|
|
+ : '';
|
|
|
+ const path = String(!router || router === '/' ? fallback : router).trim();
|
|
|
if (!path || path === '/' || !path.startsWith('/')) return '';
|
|
|
return path;
|
|
|
},
|