|
@@ -143,7 +143,7 @@ const sendWrongSync = (column: { text: string; value: number }) => {
|
|
|
})
|
|
|
.then((res) => {
|
|
|
wrongList.value = res.data;
|
|
|
- window.localStorage.setItem(userWrongKey, JSON.stringify(wrongList.value));
|
|
|
+ window.localStorage.setItem(userWrongKey, JSON.stringify(wrongList.value||[]));
|
|
|
});
|
|
|
});
|
|
|
break;
|
|
@@ -170,7 +170,7 @@ const sendWrongSync = (column: { text: string; value: number }) => {
|
|
|
})
|
|
|
.then((res) => {
|
|
|
wrongList.value = res.data;
|
|
|
- window.localStorage.setItem(userWrongKey, JSON.stringify(wrongList.value));
|
|
|
+ window.localStorage.setItem(userWrongKey, JSON.stringify(wrongList.value||[]));
|
|
|
});
|
|
|
break;
|
|
|
}
|
|
@@ -197,7 +197,7 @@ const sendCollectSync = (column: { text: string; value: number }) => {
|
|
|
})
|
|
|
.then((res) => {
|
|
|
collectionList.value = res.data;
|
|
|
- window.localStorage.setItem(userCollectKey, JSON.stringify(collectionList.value));
|
|
|
+ window.localStorage.setItem(userCollectKey, JSON.stringify(collectionList.value||[]));
|
|
|
});
|
|
|
});
|
|
|
break;
|
|
@@ -224,7 +224,7 @@ const sendCollectSync = (column: { text: string; value: number }) => {
|
|
|
})
|
|
|
.then((res) => {
|
|
|
collectionList.value = res.data;
|
|
|
- window.localStorage.setItem(userCollectKey, JSON.stringify(collectionList.value));
|
|
|
+ window.localStorage.setItem(userCollectKey, JSON.stringify(collectionList.value||[]));
|
|
|
});
|
|
|
break;
|
|
|
}
|