提交 e2fa6ec9 作者: ZhangLingKun

优化:问题修复

上级 80b269d7
流水线 #7902 已通过 于阶段
in 1 分 4 秒
import './index.scss';
import React from 'react';
const TableItem: React.FC<{
td?: React.ReactNode;
tr?: React.ReactNode;
......
......@@ -80,7 +80,7 @@ function LoginView() {
}, 1000);
} else {
if (time) {
clearInterval(time);
clearInterval(time as any);
}
}
setIsLoginCode(!isLoginCode);
......@@ -89,7 +89,7 @@ function LoginView() {
const getLoginInfo = () => {
CommonAPI.getLoginInfo({ randomLoginCode }).then(async ({ result, code }) => {
if (code === '200') {
clearInterval(time);
clearInterval(time as any);
message.success('登录成功');
const { token } = result;
await Cookies.set('SHAREFLY-TOKEN', token);
......
......@@ -79,6 +79,11 @@ const DemandOrderList = () => {
};
// 组件挂载
useEffect(() => {
// 还原列表
setTableData([]);
// 还原分页
setPagination({ pageNo: 1, pageSize: 10, totalCount: 0 });
// 获取数据
getFlowDictionary().then();
getServiceOrderFormList();
// console.log('组件挂载 --->', );
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论