diff --git a/.env b/.env index 37d5857..0d7459a 100644 --- a/.env +++ b/.env @@ -2,8 +2,8 @@ VITE_APP_TITLE=金融产品设计及数字化营销沙盘 VITE_PORT=9520 VITE_PROXY=http://192.168.31.125:8080 VITE_PUBLIC_PATH=./ -VITE_BASE_API=http://192.168.31.217:9000 +# VITE_BASE_API=http://192.168.31.51:9000 # VITE_BASE_API=http://121.37.12.51 -# VITE_BASE_API=https://www.occupationlab.com +VITE_BASE_API=https://www.occupationlab.com VITE_I18N_LOCALE=zh-cn VITE_I18N_FALLBACK_LOCALE=zh-cn diff --git a/src/components/Panel/index.vue b/src/components/Panel/index.vue index e3a418f..c2e7719 100644 --- a/src/components/Panel/index.vue +++ b/src/components/Panel/index.vue @@ -598,6 +598,7 @@ const submit = async () => { grade.value = score < 10 ? '0' + score : score; reportId.value = retMap.reportId; Cookies.set('sand-reportId', retMap.reportId); + Cookies.set('sand-score', grade.value); localStorage.setItem('sand-taskList', JSON.stringify(taskList.value)); delCache(); submiting.value = false; @@ -641,6 +642,7 @@ const getProDetail = async () => { curReq.value = pointsList.map((e) => e.judgmentId); // 实验要求默认全部展开,通过judgmentId来选中item points.value = pointsList; taskList.value = isSubmit.value ? JSON.parse(localStorage.getItem('sand-taskList')) : pointsList; // 实验任务 + grade.value = isSubmit.value ? Cookies.get('sand-score') : '00'; judgmentId.value = pointsList[0].judgmentId; // 默认取第一个判分点 pd.value = project; curSystemId.value = project.systemId; diff --git a/src/utils/request.ts b/src/utils/request.ts index 83046f3..e2bac04 100644 --- a/src/utils/request.ts +++ b/src/utils/request.ts @@ -50,7 +50,7 @@ service.interceptors.response.use( title: status, message: h('div', null, [h('p', { class: 'text-lg' }, t('error.forbidden')), h('p', { class: 'mt-2' }, message)]), }); - } else { + } else if (message) { ElMessage.error(message); } return Promise.reject(error); diff --git a/src/views/product/afterLoan/1031.vue b/src/views/product/afterLoan/1031.vue index 3ba06d5..5e19178 100644 --- a/src/views/product/afterLoan/1031.vue +++ b/src/views/product/afterLoan/1031.vue @@ -78,7 +78,7 @@ 内逾期次数。 -