提交 c9b271f0 编写于 作者: youjia727's avatar youjia727

增加曾经联动功能

上级 efdc44f4
......@@ -8,10 +8,12 @@
"name": "vite-react-ts-admin",
"version": "0.0.0",
"dependencies": {
"@ant-design/cssinjs": "^1.9.1",
"@ant-design/icons": "^5.0.1",
"@dnd-kit/core": "^6.0.8",
"@dnd-kit/modifiers": "^6.0.1",
"@dnd-kit/sortable": "^7.0.2",
"@dnd-kit/utilities": "^3.2.1",
"antd": "^5.4.6",
"dayjs": "^1.11.7",
"less": "^4.1.3",
......
......@@ -10,10 +10,12 @@
"preview": "vite preview"
},
"dependencies": {
"@ant-design/cssinjs": "^1.9.1",
"@ant-design/icons": "^5.0.1",
"@dnd-kit/core": "^6.0.8",
"@dnd-kit/modifiers": "^6.0.1",
"@dnd-kit/sortable": "^7.0.2",
"@dnd-kit/utilities": "^3.2.1",
"antd": "^5.4.6",
"dayjs": "^1.11.7",
"less": "^4.1.3",
......
......@@ -13,7 +13,7 @@ function View() {
<App>
{/* outlet 占位符,类似于窗口, 有点像vue中的router-view */}
{location.pathname === '/login' ?
<LoginLayout>{outlet}</LoginLayout> :
<LoginLayout>{outlet as React.ReactElement<any, any>}</LoginLayout> :
<>{outlet}</>
}
</App>
......
......@@ -223,5 +223,4 @@ function CascaderConfig(props: propTypes) {
</Modal>
)
}
export default CascaderConfig;
\ No newline at end of file
......@@ -66,11 +66,11 @@ export function useReactive(data: objProps) {
/* 普通更新数据 */
export function useUpdate() {
const [_, update] = useState(0);
const [_, update] = useState<number>(0);
function updateCallback(callback: Function) {
callback();
update(+new Date());
update(Date.now());
};
return updateCallback;
};
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册