feat: add recovery center and daily reviews
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
import { computed, onMounted, ref } from "vue";
|
||||
import { useRouter } from "vue-router";
|
||||
import { useViewport } from "@/composables/useViewport";
|
||||
import axios from "axios";
|
||||
import apiClient, { getApiErrorMessage } from "@/api/client";
|
||||
import type { DailyReviewReport } from "@/types";
|
||||
|
||||
@@ -28,7 +29,10 @@ async function loadReport() {
|
||||
});
|
||||
report.value = data;
|
||||
} catch (error) {
|
||||
loadError.value = getApiErrorMessage(error, "回顾日报加载失败,请稍后重试。");
|
||||
loadError.value =
|
||||
axios.isAxiosError(error) && error.response?.status === 404
|
||||
? "当前后端还没有部署回顾日报接口。请先同步更新并重启后端,再打开这个页面。"
|
||||
: getApiErrorMessage(error, "回顾日报加载失败,请稍后重试。");
|
||||
} finally {
|
||||
loading.value = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user