fix(lint): move jdbc progress sticky value out of computed

This commit is contained in:
t8y2
2026-10-14 15:25:07 +08:00
parent 731cca9c29
commit 6ea0ee5410
@@ -274,12 +274,10 @@ function getAgentProgressPercent(dbType: string): number | null {
return next ?? lastAgentProgressPercent[dbType] ?? null;
}
const jdbcPluginProgressNumber = computed(() => {
const next = driverInstallProgressPercent(jdbcPluginProgress.value);
if (next !== null) {
lastJdbcPluginProgressPercent.value = next;
}
return next ?? lastJdbcPluginProgressPercent.value;
const jdbcPluginProgressNumber = computed(() => driverInstallProgressPercent(jdbcPluginProgress.value) ?? lastJdbcPluginProgressPercent.value);
watch(jdbcPluginProgress, (progress) => {
const next = driverInstallProgressPercent(progress);
if (next !== null) lastJdbcPluginProgressPercent.value = next;
});
function resetAgentInstallProgress() {