From ad7e1860e2726725c01519f2188e4cccb4964e88 Mon Sep 17 00:00:00 2001 From: ltx <1006158920@qq.com> Date: Thu, 15 Oct 2026 16:42:58 +0800 Subject: [PATCH] =?UTF-8?q?update:=E9=89=B4=E6=9D=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/studentsManage/index.vue | 3 +-- vite.config.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/views/studentsManage/index.vue b/src/views/studentsManage/index.vue index 6ffeb60..08fc94c 100644 --- a/src/views/studentsManage/index.vue +++ b/src/views/studentsManage/index.vue @@ -349,7 +349,6 @@ const currentRoute = route.path; //获取当前页面路由 const store = useStore(); const userInfo = store.getters.getUserInfo(); const isSchoolAdmin = Number(userInfo?.roleId) === 2; -const isAdministrator = [1, 2].includes(Number(userInfo?.roleId)); const baseURL = axios.defaults.baseURL; const dialogVisiblePhoto = ref(false) const photoUploading = ref(false) @@ -388,7 +387,7 @@ const canUpdate = true const canPromoteStudents = isSchoolAdmin const canUndoPromotion = isSchoolAdmin const canManagePromotion = canPromoteStudents || canUndoPromotion -const canBatchDelete = isAdministrator && hasPagePermission(buttons, 'BatchDelete') +const canBatchDelete = hasPagePermission(buttons, 'BatchDelete') const ruleForm = ref({ id: 0, studentNo: '', diff --git a/vite.config.ts b/vite.config.ts index 71bf73a..2984b63 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -27,7 +27,7 @@ export default ({ mode }: ConfigEnv) => { proxy: { '/dev-api': { // target: 'http://8.153.108.90:9991/', - target: 'http://8.153.108.90:9991', + target: 'http://localhost:9991/', changeOrigin: true, rewrite: (path) => path.replace(/^\/dev-api/, '') }