mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 16:54:25 +08:00
fix "Save Display Order" still displays bug when adjusting the order and then restoring the original order in the desktop version
This commit is contained in:
@@ -433,7 +433,7 @@ export default {
|
||||
}).catch(error => {
|
||||
self.loading = false;
|
||||
|
||||
if (error && error.message === 'Account list is up to date') {
|
||||
if (error && error.isUpToDate) {
|
||||
self.displayOrderModified = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -348,6 +348,10 @@ function reload(force: boolean): void {
|
||||
}).catch(error => {
|
||||
loading.value = false;
|
||||
|
||||
if (error && error.isUpToDate) {
|
||||
displayOrderModified.value = false;
|
||||
}
|
||||
|
||||
if (!error.processed) {
|
||||
snackbar.value?.showError(error);
|
||||
}
|
||||
|
||||
@@ -317,6 +317,10 @@ function reload(): void {
|
||||
}).catch(error => {
|
||||
loading.value = false;
|
||||
|
||||
if (error && error.isUpToDate) {
|
||||
displayOrderModified.value = false;
|
||||
}
|
||||
|
||||
if (!error.processed) {
|
||||
snackbar.value?.showError(error);
|
||||
}
|
||||
|
||||
@@ -254,6 +254,10 @@ export default {
|
||||
}).catch(error => {
|
||||
self.loading = false;
|
||||
|
||||
if (error && error.isUpToDate) {
|
||||
self.displayOrderModified = false;
|
||||
}
|
||||
|
||||
if (!error.processed) {
|
||||
self.$refs.snackbar.showError(error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user