getIPAddress() {
// 使用异步请求获取IP地址
const url = 'https://api.ipify.org?format=json';
fetch(url)
.then(response => response.json())
.then(data => {
this.ipAddress = data.ip;
console.log("本机ip地址",this.ipAddress);
})
.catch(error => {
console.log('获取IP地址失败:', error);
});
},