提交 edb036a4 作者: ZhangLingKun

Merge branch 'develop'

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