diff --git a/src/api/user/index.ts b/src/api/user/index.ts index 9f55bde..0762bec 100644 --- a/src/api/user/index.ts +++ b/src/api/user/index.ts @@ -22,8 +22,8 @@ class UserAPI { method: "get", }).then((res:any) =>{ resolve({ - "userId": res.data.data.user_id, - "username": res.data.data.user_name, + "userId": res?.data?.data?.user_id||'', + "username": res?.data?.data?.user_name||'', "nickname": "系统管理员", "avatar": "", "roles": ["ADMIN"], diff --git a/src/views/dashboard/components/ModelFlow.vue b/src/views/dashboard/components/ModelFlow.vue index 2c38c59..951c64c 100644 --- a/src/views/dashboard/components/ModelFlow.vue +++ b/src/views/dashboard/components/ModelFlow.vue @@ -122,7 +122,7 @@ const loadData = () => { let objs = tmps.filter(it => it.logs_operation_type == t); return objs.length > 0 ? objs[0].operation_count : 0; } - info.cnt1 =10;// findCnt("model_compile"); + info.cnt1 = findCnt("model_compile"); info.cnt2 = findCnt("model_infer"); info.cnt3 = findCnt("model_report"); }); diff --git a/src/views/simulationEvaluation/reportDesc.vue b/src/views/simulationEvaluation/reportDesc.vue index 900cf3f..51745ba 100644 --- a/src/views/simulationEvaluation/reportDesc.vue +++ b/src/views/simulationEvaluation/reportDesc.vue @@ -748,7 +748,7 @@ html.report-print { html.dark { .simulation-report-desc { #print_simulation_report_desc { - background: #304156; + background: #191E32; } } }