From 91457d22d47c396c2402edbefb5762767297faae Mon Sep 17 00:00:00 2001 From: wangpeng Date: Wed, 21 Feb 2024 11:45:23 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=B9=E7=A7=8D=E4=BD=9C=E4=B8=9A=E4=BA=BA?= =?UTF-8?q?=E5=91=98=E8=AF=81=E4=BB=B6=E4=B8=B4=E6=9C=9F=E6=8F=90=E9=86=92?= =?UTF-8?q?=EF=BC=88=E8=BF=81=E8=A1=A8=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/header/index.vue | 14 +++++--------- src/request/api.js | 2 -- src/request/special_operations.js | 2 ++ 3 files changed, 7 insertions(+), 11 deletions(-) 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();