完成vue+amis的前端版本

This commit is contained in:
2025-03-05 23:16:02 +08:00
parent 7f3a8afcb3
commit 0598d6d9de
120 changed files with 65658 additions and 0 deletions

19
client/src/utils.js Normal file
View File

@@ -0,0 +1,19 @@
const information = {
debug: true,
baseUrl: 'http://localhost'
}
export function amisRender(target, amisJson) {
let amisJsonObject = amisJson(information)
if (information.debug) {
console.log(amisJsonObject)
}
amisRequire('amis/embed').embed(
target,
amisJsonObject,
information,
{
theme: 'antd'
}
)
}