amis
amis copied to clipboard
通过`sh publish.sh`编译的sdk,页面报错 `sdk.js:125 TypeError: t.apply is not a function`
有局域网部署的需求,基本的用法如下
<link th:href="@{/ajax/libs/amis/sdk/sdk.css}" rel="stylesheet"/>
<style>
html, body, .app-wrapper {position: relative;width: 100%;height: 100%;margin: 0;padding: 0;}
</style>
</head>
<body><div id="root" class="app-wrapper"></div></body>
<script th:src="@{/ajax/libs/amis/sdk/sdk.js}"></script>
<script type="text/javascript">
(function() {amisRequire("amis/embed").embed("#root", {type: "page", body: 'xxx' })})();
</script>
</html>

什么版本?是 1.0.10 吗?
实测没问题啊,最新代码,执行 sh publish.sh 编译的代码。

