feat: 前端远程异步动态组件,渲染插件模块用

This commit is contained in:
fit2cloud-chenyw
2021-05-30 20:25:58 +08:00
parent ae733b0776
commit 5f267e7723
2 changed files with 106 additions and 0 deletions

View 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
})
}