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==' });