Auto Commit

上级 552b7d0b
...@@ -189,13 +189,11 @@ function initFirstData() { ...@@ -189,13 +189,11 @@ function initFirstData() {
}) })
onUnmounted(() => { onUnmounted(() => {
window.onresize = null window.onresize = null
if (!state.searchValue) { if (state.searchValue) {
window.localStorage.removeItem('csdnUid') window.localStorage.setItem('csdnUid', state.searchValue)
} }
else { else {
if (!state.searchValue) { window.localStorage.removeItem('csdnUid')
window.localStorage.setItem('csdnUid', state.searchValue)
}
} }
}) })
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册