Skip to content

Commit

Permalink
fix(client): try compatable with safari 13, close #531
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Sep 20, 2021
1 parent 1852820 commit 43ebb56
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions packages/client/src/Waline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,12 @@ export default defineComponent({
const fetchComment = (pageNumber: number): void => {
loading.value = true;
fetchCommentList({
...config.value,
page: pageNumber,
signal,
})
fetchCommentList(
Object.assign({}, config.value, {
page: pageNumber,
signal,
})
)
.then((resp) => {
loading.value = false;
count.value = resp.count;
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/components/CommentBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ export default defineComponent({
const receiver = ({ data }: any): void => {
if (!data || data.type !== 'profile') return;
setUserInfo({ ...userInfo.value, ...data });
setUserInfo(Object.assign({}, userInfo.value, data));
[localStorage, sessionStorage]
.filter((store) => store.getItem('WALINE_USER'))
.forEach((store) =>
Expand Down

0 comments on commit 43ebb56

Please sign in to comment.