mirror of
https://github.com/dataease/dataease.git
synced 2026-05-18 01:38:11 +08:00
feat: 前端远程异步动态组件,渲染插件模块用
This commit is contained in:
22
frontend/src/api/system/dynamic.js
Normal file
22
frontend/src/api/system/dynamic.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function get(url) {
|
||||
return request({
|
||||
url: url,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function execute(options) {
|
||||
if (!options || !options.url) {
|
||||
return null
|
||||
}
|
||||
options.type = options.type || 'post'
|
||||
|
||||
return request({
|
||||
url: options.url,
|
||||
method: options.type,
|
||||
loading: true,
|
||||
data: options.data
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user