Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
修正json路径
  • Loading branch information
khbbkhbk authored Nov 9, 2024
1 parent 0945e58 commit 2698b67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ <h2><span title="取json文件的一部分导入" style="border-bottom: 1px dott

// 全局加载,使用async/await语法来处理异步操作
async function loadData() {
const response = await fetch('roles_test_copy.json'); // http://localhost:8080/
const response = await fetch('/PokeSpePlus/roles_test_copy.json'); // http://localhost:8080/
const data = await response.json();
Roles_list.push(data.Roles);
Pokes_list.push(data.Pokes);
Expand Down Expand Up @@ -347,4 +347,4 @@ <h2><span title="取json文件的一部分导入" style="border-bottom: 1px dott

</div>
</body>
</html>
</html>

0 comments on commit 2698b67

Please sign in to comment.