From c23191fe45a49d34cc7619f9fd8a55721c683975 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=91=E5=85=88=E6=A3=AE?= Date: Thu, 21 Nov 2024 18:17:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BC=80=E6=9C=BA=E8=87=AA?= =?UTF-8?q?=E5=90=AF=E6=90=AD=E9=85=8D=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=96=B9=E5=BC=8F=E5=90=AF=E5=8A=A8=20=E5=87=BA=E7=8E=B0?= =?UTF-8?q?=E7=9A=84=E6=89=BE=E4=B8=8D=E5=88=B0=E6=96=87=E4=BB=B6=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E9=97=AE=E9=A2=98=EF=BC=8C=E5=B9=B6=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E5=90=AF=E5=8A=A8=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index.vue | 246 ++++++++++++++++++---------- src-tauri/capabilities/default.json | 2 + 2 files changed, 159 insertions(+), 89 deletions(-) diff --git a/pages/index.vue b/pages/index.vue index 9ec025e..adb8ee9 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -2,7 +2,8 @@ + :model="config" + > @@ -65,7 +71,8 @@ placeholder="请选择服务器地址" default-first-option v-model="config.serverUrl" - @change="handleServerUrlChange"> + @change="handleServerUrlChange" + > @@ -87,7 +96,8 @@ v-for="item in mainStore.basePeers" :key="item" :label="item" - :value="item"> + :value="item" + >

{{ item }}

@@ -97,7 +107,8 @@ @click.stop="handleDeleteServerUrl(item)" round :icon="Delete" - type="danger"> + type="danger" + >
@@ -117,7 +128,8 @@ + v-model="config.networkName" + >
@@ -135,7 +147,8 @@ maxlength="100" placeholder="请输入网络密码" v-model="config.networkPassword" - type="password"> + type="password" + >
@@ -152,11 +165,13 @@ + v-model="config.hostname" + > + label="局域网IP" + > + v-model="config.ipv4" + > @@ -190,24 +207,28 @@ size="default" :type="!data.isStart ? 'primary' : 'danger'" :disabled="data.startLoading || !data.coreVersion || data.update" - @click="handleConnection"> + @click="handleConnection" + > {{ !data.isStart ? "启动联机" : "停止联机" }}