我正在尝试创建一个包含伪造查看器的Web组件。不幸的是,我遇到了伪造查看器无法正确加载lmvworker和allstrings.json
的问题查看器在将其用于Web组件时似乎无法加载它们:viewer3D.js:40122 GET https://stacksnippets.net/lmvworker.js 404(未找到)
查看器是从developer.api.autodesk.com获取的
要正确查看错误,请打开检查器。
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Core</title>
<base href="./">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/1.0.14/webcomponents-hi.js"></script>
<link rel="import" href="https://raw.githubusercontent.com/zedero/forge-webcomponent/master/bim.html">
</head>
<body>
<bim-viewer></bim-viewer>
</body>
</html>