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/, '') }