开始尝试进行业务化模板
This commit is contained in:
@@ -1,19 +1,21 @@
|
||||
const information = {
|
||||
debug: true,
|
||||
baseUrl: 'http://localhost'
|
||||
debug: true,
|
||||
baseUrl: 'http://localhost:8080',
|
||||
}
|
||||
|
||||
export function amisRender(target, amisJson) {
|
||||
let amisJsonObject = amisJson(information)
|
||||
if (information.debug) {
|
||||
console.log(amisJsonObject)
|
||||
}
|
||||
amisRequire('amis/embed').embed(
|
||||
target,
|
||||
amisJsonObject,
|
||||
information,
|
||||
{
|
||||
theme: 'antd'
|
||||
}
|
||||
)
|
||||
let amisJsonObject = amisJson(information)
|
||||
if (information.debug) {
|
||||
console.log(amisJsonObject)
|
||||
}
|
||||
amisRequire('amis/embed').embed(
|
||||
target,
|
||||
amisJsonObject,
|
||||
information,
|
||||
{
|
||||
theme: 'antd',
|
||||
enableAMISDebug:
|
||||
information.debug,
|
||||
},
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user