From c5957e5f36e3515fd40da1b7afa485ecb8b2ec3a Mon Sep 17 00:00:00 2001 From: wanglei Date: Sat, 3 Aug 2024 11:56:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A1=A3=E6=A1=88=E9=87=87=E9=9B=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dangan-ui/src/views/dangan/collection/index.vue | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/dangan-ui/src/views/dangan/collection/index.vue b/dangan-ui/src/views/dangan/collection/index.vue index 79c7ff5..5d2890f 100644 --- a/dangan-ui/src/views/dangan/collection/index.vue +++ b/dangan-ui/src/views/dangan/collection/index.vue @@ -410,20 +410,18 @@ export default { }, created() { this.getDeptTree(); - this.getIpAdress(); }, methods: { - getIpAdress(){ - getIp().then(response => { - this.Ip = response - }); - }, // 初始化 - WebScanInit(){ + async WebScanInit(){ + + let Ip = await getIp().then(response => { + return response; + }); let _this = this; _this.WebScan = new WebScan({ - url: "http://"+this.Ip+":18989/WebScan", + url: "http://"+Ip+":18989/WebScan", wsUrl:'http://localhost:28989/', licence:'V4tMKPYgFtW8vQr4C0s4/g==' });