diff --git a/src/page/OneDragonPage.vue b/src/page/OneDragonPage.vue index 6ae5d77..ed6163a 100644 --- a/src/page/OneDragonPage.vue +++ b/src/page/OneDragonPage.vue @@ -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) @@ -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 { diff --git a/src/router.js b/src/router.js index 3f06441..1ad06b4 100644 --- a/src/router.js +++ b/src/router.js @@ -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', },