From c2a7932b5bbb1a710aae7e8abb6cdd6e5b55d983 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Thu, 30 Dec 2021 10:46:06 +0800 Subject: [PATCH] fix: Fix tab errors. --- src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index 6913789a..8e0fc9eb 100644 --- a/src/App.js +++ b/src/App.js @@ -12,7 +12,7 @@ const initTag = JSON.parse(localStorage.getItem('osc-doc-tag')); function useData() { const [lists] = useState(source || []); const [star, setStar] = useState(initStar || []); - const [tag, setTag] = useState(initTag || ['all']); + const [tag, setTag] = useState(initTag || 'all'); const [query, setQuery] = useState(''); const [subMenu] = useState([ { title: 'ζˆ‘ηš„ζ”Άθ—', tag: '__star__' },