Commit 42fe899a authored by 熊成伟's avatar 熊成伟

debug

parent 2df7398a
Pipeline #15319 passed with stages
in 58 seconds
......@@ -105,7 +105,7 @@ const Process = (props) => {
//提交按钮状态
const [disabled, setDisabled] = useState(true);
//提交按钮文字
const [footButton, setFootButton] = useState('确认发送');
const [footButton, setFootButton] = useState('处理');
//聚焦
const optionBlur = () => {
setFootButton('确认发送');
......
......@@ -10,7 +10,7 @@ const Login = (props) => {
axiosRequest({
method: 'post',
url: '/idtAppServiceV6/oApp/login?userName=2012012099&clientFlag=123456&password=1',
url: '/idtAppServiceV6/oApp/login?userName=2012012099&clientFlag=123456&password=1&loginType=mobile',
}).then(res => {
!res.errorMessage && props.history.push(`/bord/backlog`)
// setOperates(res.operate || []);
......
......@@ -75,7 +75,7 @@ const Work = (props) => {
<WhiteSpace/>
<TopSearch onSearch={ workSearch }/>
<WhiteSpace/>
{loading ? <Skeleton/> : (!start && (data.length > 0 ? (
{loading ? <Skeleton/> : (!start && data && (data.length > 0 ? (
<WorkCard
title="工作详情"
addCommon={ commonEdit }
......
......@@ -52,7 +52,7 @@ export const createAPI = (baseURL) => {
// console.log(response)
if (!response || !response.data) {
response.message === '票据已经失效' && (window.location.href = '/login')
response.status === 'failure' && (window.location.href = '/login')
console.log('response出错, 无返回数据!', response); return false;
};
if (response.data && response.data.errorMessage) {
......@@ -67,9 +67,9 @@ export const createAPI = (baseURL) => {
localStorage.setItem("token", response.data.token);
}
if (response && response.data && response.data.leftOperateBar) {
const result = response.data.leftOperateBar.filter(item => item.nodeName === '公共分组');
const menu = result.length > 0 && result[0].children ? result[0].children.map(item => ({ icon: item.imgType, text: item.nodeName })) : [];
result.length > 0 && localStorage.setItem("menu", JSON.stringify(menu));
localStorage.removeItem("menu");
const menu = response.data.leftOperateBar.map(item => ({ icon: item.imgType, text: item.nodeName }))
menu.length > 0 && localStorage.setItem("menu", JSON.stringify(menu));
}
if (response.data) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment