amis icon indicating copy to clipboard operation
amis copied to clipboard

通过`sh publish.sh`编译的sdk,页面报错 `sdk.js:125 TypeError: t.apply is not a function`

Open icodingx opened this issue 6 years ago • 2 comments

有局域网部署的需求,基本的用法如下

<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>

00

icodingx avatar Mar 25 '20 13:03 icodingx

什么版本?是 1.0.10 吗?

2betop avatar Mar 26 '20 01:03 2betop

实测没问题啊,最新代码,执行 sh publish.sh 编译的代码。

image

image

2betop avatar Mar 26 '20 01:03 2betop