diff --git a/.env b/.env index 783e5c0..97571e0 100644 --- a/.env +++ b/.env @@ -2,7 +2,7 @@ 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://121.37.12.51 +VITE_BASE_API=http://192.168.31.217:9000 +# VITE_BASE_API=http://121.37.12.51 VITE_I18N_LOCALE=zh-cn VITE_I18N_FALLBACK_LOCALE=zh-cn diff --git a/src/assets/images/11.png b/src/assets/images/11.png new file mode 100644 index 0000000..649f5f3 Binary files /dev/null and b/src/assets/images/11.png differ diff --git a/src/layout/components/AppHeader.vue b/src/layout/components/AppHeader.vue index f5adfcd..a90fa9f 100644 --- a/src/layout/components/AppHeader.vue +++ b/src/layout/components/AppHeader.vue @@ -6,7 +6,7 @@ content="退出实训" placement="bottom"> @@ -15,7 +15,7 @@ content="返回关卡" placement="bottom"> diff --git a/src/layout/components/AppSidebar/index.vue b/src/layout/components/AppSidebar/index.vue index d807dfa..52fb22b 100644 --- a/src/layout/components/AppSidebar/index.vue +++ b/src/layout/components/AppSidebar/index.vue @@ -65,10 +65,12 @@ const roleName = computed(() => { }); // 获取操作日期 const getDate = async () => { - const res = await getOperationTime(levelId, projectId); - if (res.operationTime) { - date.value = res.operationTime; - diaDate.value = res.operationTime; + if (levelId && projectId) { + const res = await getOperationTime(levelId, projectId); + if (res.operationTime) { + date.value = res.operationTime; + diaDate.value = res.operationTime; + } } }; // 日期提交 diff --git a/src/utils/request.ts b/src/utils/request.ts index 46eefd1..5fce2a2 100644 --- a/src/utils/request.ts +++ b/src/utils/request.ts @@ -19,7 +19,13 @@ service.interceptors.request.use( ); service.interceptors.response.use( - (response) => response, + (res) => { + const { message, status } = res.data; + if (status === 200) { + return res; + } + ElMessage.error(message); + }, (e) => { const { response: { diff --git a/src/views/Home.vue b/src/views/Home.vue index 4b61f9f..f97de21 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -6,7 +6,7 @@ content="退出实训" placement="bottom"> diff --git a/src/views/Role.vue b/src/views/Role.vue index 9214f02..a1bc24f 100644 --- a/src/views/Role.vue +++ b/src/views/Role.vue @@ -45,7 +45,7 @@ content="退出实训" placement="bottom"> @@ -53,7 +53,7 @@ content="返回关卡" placement="bottom"> diff --git a/src/views/product/afterLoan/1029.vue b/src/views/product/afterLoan/1029.vue index 9fcb77b..41c0fd1 100644 --- a/src/views/product/afterLoan/1029.vue +++ b/src/views/product/afterLoan/1029.vue @@ -3,6 +3,7 @@