This commit is contained in:
zoujiandong
2023-06-13 17:10:46 +08:00
parent 150b134834
commit 4db41129a5
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
import request from '../../utils/request';
const url = '/api/v1/role';
const url = '/admin/role/list';
export function getRole(params) {
return request({
url,
+5 -1
View File
@@ -352,7 +352,11 @@ const handleScopeBeforeOk = async (done) => {
};
// 获取角色信息
const getRoleInfo = async (params = {}) => {
const getRoleInfo = async (params = {
page:1,
role_name:'',
page_size:10
}) => {
const { data, code, msg } = await getRole(params);
if ( code == 200 ) {
tableData.value = data.list;