1
0
mirror of https://github.com/ZeroCatDev/Classworks.git synced 2025-07-03 01:39:22 +00:00
This commit is contained in:
SunWuyuan 2025-03-09 15:15:24 +08:00
parent 49542e5359
commit 39d6bfec60
No known key found for this signature in database
GPG Key ID: A6A54CF66F56BB64

View File

@ -441,7 +441,7 @@ export default {
},
debouncedUpload: null,
throttledReflow: null,
_sortedItemsCache: {
sortedItemsCache: {
key: "",
value: [],
},
@ -477,12 +477,12 @@ export default {
const key = `${JSON.stringify(
this.state.homeworkData
)}_${this.state.subjectOrder.join()}_${this.dynamicSort}`;
if (this._sortedItemsCache.key === key) {
return this._sortedItemsCache.value;
if (this.sortedItemsCache.key === key) {
return this.sortedItemsCache.value;
}
const items = Object.entries(this.state.homeworkData)
.filter(([_, value]) => value.content?.trim())
.filter(([, value]) => value.content?.trim())
.map(([key, value]) => ({
key,
name: value.name,