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

View File

@ -1,6 +1,6 @@
import request from '../../utils/request'; import request from '../../utils/request';
const url = '/api/v1/role'; const url = '/admin/role/list';
export function getRole(params) { export function getRole(params) {
return request({ return request({
url, url,

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); const { data, code, msg } = await getRole(params);
if ( code == 200 ) { if ( code == 200 ) {
tableData.value = data.list; tableData.value = data.list;