diff --git a/src/layout/header/index.vue b/src/layout/header/index.vue index f3a8cae..0dc23f4 100644 --- a/src/layout/header/index.vue +++ b/src/layout/header/index.vue @@ -66,12 +66,8 @@ import { useRouter } from "vue-router"; import { useMenuStore } from "@/pinia/menu"; import { useUserStore } from "@/pinia/user"; import { MENU } from "@/assets/js/constant"; -import { - getInfo, - getUserInfo, - logout, - getPersonnelManagementWarnAmount, -} from "@/request/api"; +import { getInfo, getUserInfo, logout } from "@/request/api"; +import { getSpecialOperationsWarnAmount } from "@/request/special_operations"; import UpdateInfo from "./components/update_info.vue"; import UpdateAvatar from "./components/update_avatar.vue"; import { checkImgExists, addingPrefixToFile } from "@/assets/js/utils.js"; @@ -157,8 +153,8 @@ const fnSignOut = async () => { userStore.$reset(); await router.replace("/login"); }; -const fnPersonnelManagementWarnAmount = async () => { - const resData = await getPersonnelManagementWarnAmount(); +const fnSpecialOperationsWarnAmount = async () => { + const resData = await getSpecialOperationsWarnAmount(); if (resData.message) { ElNotification({ title: "温馨提示", @@ -169,7 +165,7 @@ const fnPersonnelManagementWarnAmount = async () => { }); } }; -fnPersonnelManagementWarnAmount(); +fnSpecialOperationsWarnAmount();