|
|
|
|
@ -9,7 +9,7 @@
|
|
|
|
|
<link rel="stylesheet" href="/3Dpoints/static/js/lib/jquery-ui-1.12.1/jquery-ui.min.css">
|
|
|
|
|
<script src="/3Dpoints/static/js/lib/jquery-ui-1.12.1/jquery-ui.min.js"></script> -->
|
|
|
|
|
|
|
|
|
|
<link type="text/css" rel="stylesheet" href="/3Dpoints/static/css/main.css">
|
|
|
|
|
<!-- <link type="text/css" rel="stylesheet" href="/3Dpoints/static/css/main.css"> -->
|
|
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
@ -1032,7 +1032,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="log-wrapper" class="popup-window-wrapper" tabindex='-1'>
|
|
|
|
|
<div id="log-wrapper" class="popup-window-wrapper" tabindex='-1' style="display: none;">
|
|
|
|
|
<div id="view">
|
|
|
|
|
<div id="header">
|
|
|
|
|
<span id="title">终端</span>
|
|
|
|
|
@ -1301,7 +1301,47 @@
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script src="/3Dpoints/static/js/lib/ml/tf.min.js"></script>
|
|
|
|
|
<script type="module" src="/3Dpoints/static/js/main.js"></script>
|
|
|
|
|
<!-- <script src="/3Dpoints/static/js/lib/ml/tf.min.js"></script> -->
|
|
|
|
|
<!-- <script type="module" src="/3Dpoints/static/js/main.js"></script> -->
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
function loadDynamicResources() {
|
|
|
|
|
// 定义不同环境下的基础路径
|
|
|
|
|
const basePath = (window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1' || window.location.hostname === '192.168.5.177')
|
|
|
|
|
? '.'
|
|
|
|
|
: '/3Dpoints';
|
|
|
|
|
|
|
|
|
|
// 动态加载CSS
|
|
|
|
|
const links = [
|
|
|
|
|
`${basePath}/static/css/main.css`
|
|
|
|
|
]
|
|
|
|
|
links.forEach(linkHref => {
|
|
|
|
|
const link = document.createElement('link');
|
|
|
|
|
link.rel = 'stylesheet';
|
|
|
|
|
link.type = 'text/css';
|
|
|
|
|
link.href = `${basePath}/static/css/main.css`;
|
|
|
|
|
document.head.appendChild(link);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// 动态加载JavaScript
|
|
|
|
|
const scripts = [
|
|
|
|
|
{type:'text/javascript', src:`${basePath}/static/js/lib/ml/tf.min.js`},
|
|
|
|
|
{type:'module', src:`${basePath}/static/js/main.js`}
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
scripts.forEach(item => {
|
|
|
|
|
const script = document.createElement('script');
|
|
|
|
|
script.src = item.src;
|
|
|
|
|
script.type = item.type;
|
|
|
|
|
document.head.appendChild(script);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
console.log(window.location.href)
|
|
|
|
|
try {
|
|
|
|
|
loadDynamicResources();
|
|
|
|
|
} catch (error) {
|
|
|
|
|
document.addEventListener('DOMContentLoaded', loadDynamicResources);
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|