chore: user apikeys

This commit is contained in:
jialin
2024-06-23 15:15:12 +08:00
parent a03a95a3bc
commit ff1cf01edf
24 changed files with 481 additions and 180 deletions
+6 -6
View File
@@ -1,13 +1,13 @@
// 全局共享数据示例
import { DEFAULT_NAME } from '@/constants';
// import { DEFAULT_NAME } from '@/constants';
import { useState } from 'react';
const useUser = () => {
const [name, setName] = useState<string>(DEFAULT_NAME);
const useGlobalState = () => {
const [globalState, setGlobalState] = useState<any>({});
return {
name,
setName,
globalState,
setGlobalState
};
};
export default useUser;
export default useGlobalState;