update:鉴权

This commit is contained in:
ltx 2026-10-15 16:42:58 +08:00
parent 4f153c2d83
commit ad7e1860e2
2 changed files with 2 additions and 3 deletions

View File

@ -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: '',

View File

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