From 87f4a05dc12eb9074e40ef64cb9de39fa5e50e0d Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Mon, 8 Jul 2024 13:44:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96frpc=E4=B8=8A=E6=AC=A1?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/homePage/components/tableMain.vue | 8 ++++++ src/views/homePage/index.vue | 32 +++++++++++++++++---- 2 files changed, 35 insertions(+), 5 deletions(-) diff --git a/src/views/homePage/components/tableMain.vue b/src/views/homePage/components/tableMain.vue index 407c8a5..6d3d112 100644 --- a/src/views/homePage/components/tableMain.vue +++ b/src/views/homePage/components/tableMain.vue @@ -1965,6 +1965,10 @@ export default { case 8: console.log("开启frpc"); this.frpcVisible = true; + if (JSON.parse(localStorage.getItem("frpcJson"))) { + this.frpcform = JSON.parse(localStorage.getItem("frpcJson")); + } + return; case 9: console.log("停止frpc"); @@ -2134,6 +2138,7 @@ export default { fn: this.selectUpObjOta.fileName, termIds: this.idArray, }; + console.log(params); this.changeIssue(params); this.upgradationVisibleOta = false; } @@ -2156,8 +2161,10 @@ export default { //开启frpc handleFrpc() { console.log(this.$refs.frpcRuleForm); + this.$refs.frpcRuleForm.validate((valid) => { if (valid) { + console.log(this.frpcform); var params = { action: "yw_cmd_start_frpc", server_addr: this.frpcform.server_addr, @@ -2169,6 +2176,7 @@ export default { type: this.frpcform.type, termId: this.idArray[0], }; + localStorage.setItem("frpcJson", JSON.stringify(this.frpcform)); this.changeIssue(params); this.frpcVisible = false; } diff --git a/src/views/homePage/index.vue b/src/views/homePage/index.vue index 44a9206..2343412 100644 --- a/src/views/homePage/index.vue +++ b/src/views/homePage/index.vue @@ -9,7 +9,12 @@ >