fix: update folder reference in socket store and adjust history count logic in state store
This commit is contained in:
parent
cf8704a2aa
commit
4a3f0316ea
2 changed files with 7 additions and 2 deletions
|
|
@ -159,7 +159,7 @@ export const useSocketStore = defineStore('socket', () => {
|
|||
return;
|
||||
}
|
||||
|
||||
if (json.data?.folder) {
|
||||
if (json.data?.folders) {
|
||||
config.add('folders', json.data.folders)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -176,7 +176,12 @@ export const useStateStore = defineStore('state', () => {
|
|||
|
||||
const getPagination = () => state.pagination
|
||||
|
||||
const setHistoryCount = (count: number) => state.pagination.total = count
|
||||
const setHistoryCount = (count: number) => {
|
||||
state.pagination.total = count
|
||||
if (count > 0 && !state.pagination.isLoaded) {
|
||||
state.pagination.isLoaded = false
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete items by specific IDs or status filter.
|
||||
|
|
|
|||
Loading…
Reference in a new issue