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 @@ >