feat:移除了弹窗,服务器添加sls
This commit is contained in:
commit
6a295f9a7a
4082 files changed
+1322534
No files matched your search
@@ -0,0 +1,10 @@
|
||||
const SIDEBAR_EXPANDED_STORAGE_KEY = 'axolotl-right-sidebar-expanded'
|
||||
|
||||
export function getSidebarExpanded(): boolean {
|
||||
const value = localStorage.getItem(SIDEBAR_EXPANDED_STORAGE_KEY)
|
||||
return value !== 'false'
|
||||
}
|
||||
|
||||
export function setSidebarExpanded(expanded: boolean) {
|
||||
localStorage.setItem(SIDEBAR_EXPANDED_STORAGE_KEY, String(expanded))
|
||||
}
|
||||
Reference in new issue
Block a user