Skip to content

Commit

Permalink
1.0.14
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaobaidadada committed Nov 29, 2024
1 parent 8466c2e commit 7faf573
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "filecat",
"version": "1.0.13",
"version": "1.0.14",
"description": "filecat 文件管理器",
"author": "xiaobaidadada",
"scripts": {
Expand Down
5 changes: 5 additions & 0 deletions src/web/project/component/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ function Layout() {
const [headerMin, setHeaderMin] = useRecoilState($stroe.header_min);
const [image_editor, set_image_editor] = useRecoilState($stroe.image_editor);
const [excalidraw_editor, set_excalidraw_editor] = useRecoilState($stroe.excalidraw_editor);
const [custom_fun_opt,set_custom_fun_opt] = useRecoilState($stroe.custom_fun_opt);

function logout() {
localStorage.setItem('token', '')
Expand All @@ -50,6 +51,10 @@ function Layout() {
// {component:(<div>测试</div>)}
]
]
if(custom_fun_opt) {
// @ts-ignore
MainNavList[MainNavList.length-1].push(custom_fun_opt);
}


return (
Expand Down
8 changes: 8 additions & 0 deletions src/web/project/util/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,14 @@ export const $stroe = {
localStorageEffect("user_base_info")
]
}),
// 自定义选项
custom_fun_opt: atom({
key: 'custom_fun_opt',
default: [],
effects: [
localStorageEffect("custom_fun_opt")
]
}),
// 头部菜单状态
header_min: atom({
key: 'header_min',
Expand Down

0 comments on commit 7faf573

Please sign in to comment.