From d8f8332a42370de12b460add9e89faee838c0bdc Mon Sep 17 00:00:00 2001 From: tignioj <859897994@qq.com> Date: Fri, 1 Nov 2024 04:49:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9C=AA=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E4=B8=80=E6=9D=A1=E9=BE=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/OneDragonPage.vue | 6 ++---- src/router.js | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) 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', },