变更
This commit is contained in:
+28
-1
@@ -192,11 +192,38 @@
|
||||
<div style="position: absolute;top: 0px;left:80px;z-index: 1000;cursor: pointer;" onclick="xxObj.expand_all()"><span data-feather="folder-plus"></span><span class="un_selected">展开</span></div>
|
||||
<div style="position: absolute;top: 0px;left:160px;z-index: 1000;cursor: pointer;" onclick="xxObj.star()"><span data-feather="star"></span><span class="un_selected">收藏</span></div>
|
||||
<div style="position: absolute;top: 0px;left:240px;z-index: 1000;cursor: pointer;" onclick="xxObj.un_star()"><span data-feather="arrow-up-circle"></span><span class="un_selected">取消收藏</span></div>
|
||||
|
||||
<div style="position: absolute;top: 0px;left:350px;z-index: 1000;cursor: pointer;" onclick="window.open(*http://127.0.0.1:63342/jsmindmulti/static/html/xmind_isg.html?_ijt=g5ujqru3nfvc35egnr4ldppb22&_ij_reload=RELOAD_ON_SAVE*)"><span data-feather="heart"></span><span class="un_selected">ChatGpt聚合生成测试用例</span></div>
|
||||
|
||||
|
||||
<form style="position: absolute;top: 32px;left:0px;z-index: 1000;cursor: pointer;" id="upload-form">
|
||||
<span data-feather="book"></span>
|
||||
<input class="un_selected" type="file" id="file-input" name="file"><button type="submit">导入Xmind</button>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h3 id="h1" style="text-align: center;max-height: 40px;"></h3>
|
||||
<div id="jsmind_container"></div>
|
||||
</body>
|
||||
<script>
|
||||
if (window.feather) {
|
||||
const form = document.getElementById('upload-form');
|
||||
const resultDiv = document.getElementById('result');
|
||||
form.addEventListener('submit', async (event) => {
|
||||
event.preventDefault();
|
||||
const formData = new FormData(form);
|
||||
const response = await fetch('http://127.0.0.1:8000/xmind/list/', {
|
||||
method: 'POST',
|
||||
body: formData,
|
||||
});
|
||||
const data = await response.json();
|
||||
resultDiv.innerText = JSON.stringify(data, null, 2);
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
if (window.feather) {
|
||||
window.feather.replace();
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user