refs #6722 perf: not fetch when id not exists
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
3bf984be5c
commit
f4ddc7001b
|
@ -96,7 +96,7 @@ watch(
|
||||||
store.data = null;
|
store.data = null;
|
||||||
if (!arrayData.store?.filter?.where) {
|
if (!arrayData.store?.filter?.where) {
|
||||||
//Cuando el cambio viene por VnSearchbar
|
//Cuando el cambio viene por VnSearchbar
|
||||||
store.url = store.url.replace(/(\d+)/, route.params.id);
|
if (route.params.id) store.url = store.url.replace(/(\d+)/, route.params.id);
|
||||||
} else {
|
} else {
|
||||||
// Cuando el usuario cambia en la URL
|
// Cuando el usuario cambia en la URL
|
||||||
const claveFk = Object.keys(arrayData.store.filter.where).find((clave) =>
|
const claveFk = Object.keys(arrayData.store.filter.where).find((clave) =>
|
||||||
|
|
Loading…
Reference in New Issue