feat: init

This commit is contained in:
landaiqing
2024-07-10 10:15:16 +08:00
commit cba745729f
45 changed files with 11140 additions and 0 deletions

13
src/models/global.ts Normal file
View File

@@ -0,0 +1,13 @@
// 全局共享数据示例
import { DEFAULT_NAME } from '@/constants';
import { useState } from 'react';
const useUser = () => {
const [name, setName] = useState<string>(DEFAULT_NAME);
return {
name,
setName,
};
};
export default useUser;