|
|
@ -524,6 +524,7 @@ provide(ReloadRowDataHookInj, reloadViewDataHook) |
|
|
|
watch( |
|
|
|
watch( |
|
|
|
view, |
|
|
|
view, |
|
|
|
async (next, old) => { |
|
|
|
async (next, old) => { |
|
|
|
|
|
|
|
try { |
|
|
|
if (next && next.id !== old?.id) { |
|
|
|
if (next && next.id !== old?.id) { |
|
|
|
// whenever tab changes or view changes save any unsaved data |
|
|
|
// whenever tab changes or view changes save any unsaved data |
|
|
|
if (old?.id) { |
|
|
|
if (old?.id) { |
|
|
@ -538,6 +539,9 @@ watch( |
|
|
|
} |
|
|
|
} |
|
|
|
await loadData() |
|
|
|
await loadData() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} catch (e) { |
|
|
|
|
|
|
|
console.log(e) |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ immediate: true }, |
|
|
|
{ immediate: true }, |
|
|
|
) |
|
|
|
) |
|
|
|