Skip to content

Commit

Permalink
修复未加载一条龙问题
Browse files Browse the repository at this point in the history
  • Loading branch information
tignioj committed Oct 31, 2024
1 parent e311a24 commit d8f8332
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions src/page/OneDragonPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,6 @@ onMounted(()=> {
socket.value.on(SOCKET_EVENT_DOMAIN_END, (data)=> { info(data) })
})
const gameFolder = ref('');
function save() {
logCheckedItems()
const jsonString = JSON.stringify(oneDragonList.value)
Expand Down Expand Up @@ -198,17 +196,17 @@ function getOneDragonList() {
errorMsg(error)
});
}
// getOneDragonList();
getOneDragonList();
const instanceConfigRef = ref(null)
function runAllInstance() {
info("开始执行所有实例的一条龙")
fetch(oneDragonRunAllInstanceURL).then(response => {
if (!response.ok) throw new Error('Network response was not ok ' + response.statusText);
return response.json(); // 解析响应为 JSON
})
.then(data => {
if (data.success === true) {
console.log("开始执行所有实例的一条龙")
getOneDragonList()
instanceConfigRef.value.updateInstances()
} else {
Expand Down
4 changes: 2 additions & 2 deletions src/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import DomainPage from "@/page/DomainPage.vue";
const routes = [
{ path: '/',
// redirect: '/config/editor',
// redirect: '/oneDragon',
redirect: '/domain',
redirect: '/oneDragon',
// redirect: '/domain',
// redirect: '/team',
// redirect: '/leyline',
},
Expand Down

0 comments on commit d8f8332

Please sign in to comment.