增加接口

This commit is contained in:
mmc
2026-05-06 09:18:06 +08:00
parent ffdb75608b
commit fa2bc029f6
2 changed files with 11 additions and 1 deletions

3
env.js
View File

@@ -9,7 +9,8 @@ const currentEnv = import.meta.env?.MODE || process.env.NODE_ENV;
// 环境配置映射
const envConfig = {
[ENV.DEV]: {
baseURL: 'http://192.168.2.56:8081',//http://192.168.2.56:8081
//baseURL: 'http://192.168.2.56:8081',//http://192.168.2.56:8081
baseURL: 'http://1.95.137.212:59015',//http://192.168.2.56:8081
WS_URL: 'ws://192.168.2.56:9002/ws/',
},
[ENV.PROD]: {

View File

@@ -42,6 +42,15 @@ export function getRoleDetailById(roleId) {
});
}
//根据角色获取 它可以分配的角色
export function getRoleAllocate(roleId) {
return request({
url: `/system/role/selectAllocatableRole`,
method: 'get',
});
}