dataease-dm/frontend/src/api/system/plugin.js

23 lines
452 B
JavaScript

import request from '@/utils/request'
const pathMap = {
queryPath: '/api/plugin/pluginGrid/',
uninstallPath: 'api/plugin/uninstall/'
}
export function pluginLists(page, size, data) {
return request({
url: pathMap.queryPath + page + '/' + size,
method: 'post',
data,
loading: true
})
}
export function uninstall(pluginId) {
return request({
url: pathMap.queryPath + pluginId,
method: 'post',
loading: true
})
}