update:鉴权
This commit is contained in:
parent
4f153c2d83
commit
ad7e1860e2
@ -349,7 +349,6 @@ const currentRoute = route.path; //获取当前页面路由
|
|||||||
const store = useStore();
|
const store = useStore();
|
||||||
const userInfo = store.getters.getUserInfo();
|
const userInfo = store.getters.getUserInfo();
|
||||||
const isSchoolAdmin = Number(userInfo?.roleId) === 2;
|
const isSchoolAdmin = Number(userInfo?.roleId) === 2;
|
||||||
const isAdministrator = [1, 2].includes(Number(userInfo?.roleId));
|
|
||||||
const baseURL = axios.defaults.baseURL;
|
const baseURL = axios.defaults.baseURL;
|
||||||
const dialogVisiblePhoto = ref(false)
|
const dialogVisiblePhoto = ref(false)
|
||||||
const photoUploading = ref(false)
|
const photoUploading = ref(false)
|
||||||
@ -388,7 +387,7 @@ const canUpdate = true
|
|||||||
const canPromoteStudents = isSchoolAdmin
|
const canPromoteStudents = isSchoolAdmin
|
||||||
const canUndoPromotion = isSchoolAdmin
|
const canUndoPromotion = isSchoolAdmin
|
||||||
const canManagePromotion = canPromoteStudents || canUndoPromotion
|
const canManagePromotion = canPromoteStudents || canUndoPromotion
|
||||||
const canBatchDelete = isAdministrator && hasPagePermission(buttons, 'BatchDelete')
|
const canBatchDelete = hasPagePermission(buttons, 'BatchDelete')
|
||||||
const ruleForm = ref({
|
const ruleForm = ref({
|
||||||
id: 0,
|
id: 0,
|
||||||
studentNo: '',
|
studentNo: '',
|
||||||
|
|||||||
@ -27,7 +27,7 @@ export default ({ mode }: ConfigEnv) => {
|
|||||||
proxy: {
|
proxy: {
|
||||||
'/dev-api': {
|
'/dev-api': {
|
||||||
// target: 'http://8.153.108.90:9991/',
|
// target: 'http://8.153.108.90:9991/',
|
||||||
target: 'http://8.153.108.90:9991',
|
target: 'http://localhost:9991/',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
rewrite: (path) => path.replace(/^\/dev-api/, '')
|
rewrite: (path) => path.replace(/^\/dev-api/, '')
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user