แก้ ดึงข้อมูลช้ำ
This commit is contained in:
parent
9f110ccc0c
commit
0b9017ff1b
1 changed files with 3 additions and 3 deletions
|
|
@ -109,8 +109,8 @@ export const useDataStore = defineStore("systemStore", () => {
|
||||||
.then(async (res) => {
|
.then(async (res) => {
|
||||||
backupRunTotal.value = res.data.length;
|
backupRunTotal.value = res.data.length;
|
||||||
|
|
||||||
if (backupRunTotal.value === 0 && prevBackupRunTotal.value !== 0) {
|
if (backupRunTotal.value === 0) {
|
||||||
cb();
|
if (prevBackupRunTotal.value !== -1) cb();
|
||||||
prevBackupRunTotal.value = backupRunTotal.value;
|
prevBackupRunTotal.value = backupRunTotal.value;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -147,7 +147,7 @@ export const useDataStore = defineStore("systemStore", () => {
|
||||||
.get<BackUpRunning[]>(config.API.backup + "/restore-running-list")
|
.get<BackUpRunning[]>(config.API.backup + "/restore-running-list")
|
||||||
.then(async (res) => {
|
.then(async (res) => {
|
||||||
restoreRunTotal.value = res.data.length;
|
restoreRunTotal.value = res.data.length;
|
||||||
if (restoreRunTotal.value === 0 && prevRestoreRunTotal.value !== 0) {
|
if (restoreRunTotal.value === 0) {
|
||||||
cb();
|
cb();
|
||||||
prevRestoreRunTotal.value = restoreRunTotal.value;
|
prevRestoreRunTotal.value = restoreRunTotal.value;
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue