chore: 初始化仓库基线(AGENTS.md、git 规范、敏感文件排除)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import React, { useEffect } from 'react';
|
||||
import { useDidShow, useDidHide } from '@tarojs/taro';
|
||||
import { useStore } from '@/store/useStore';
|
||||
import './app.scss';
|
||||
|
||||
function App(props) {
|
||||
const restoreSession = useStore((s) => s.restoreSession);
|
||||
|
||||
useEffect(() => {
|
||||
restoreSession();
|
||||
}, [restoreSession]);
|
||||
|
||||
useDidShow(() => {});
|
||||
useDidHide(() => {});
|
||||
|
||||
return props.children;
|
||||
}
|
||||
|
||||
export default App;
|
||||
Reference in New Issue
Block a user