Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Yohann0617 committed Apr 3, 2024
1 parent 90a1c1b commit d5e5ea6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions foreign-server/src/main/resources/static/proxyIp.html
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ <h2>代理IP列表</h2>
</el-table-column>
<el-table-column label="Action" fixed="right" width="250">
<template slot-scope="scope">
<el-button type="primary" round @click="addSingleDnsRecord(scope.row.ip)" size="mini">解析到CF
<el-button type="primary" round @click="addSingleDnsRecord(scope.row.id,scope.row.ip)" size="mini">解析到CF
</el-button>
<el-button type="success" round @click="getIpInfo(scope.row.ip)" size="mini">获取IP信息
</el-button>
Expand Down Expand Up @@ -307,7 +307,7 @@ <h2>代理IP列表</h2>
for (const key in responseData) {
formattedData += `| "${key}" : "${responseData[key]}"\n`;
}
this.$alert(formattedData, 'IP:' + ip+' 信息', {
this.$alert(formattedData, 'IP:' + ip + ' 信息', {
confirmButtonText: '确定',
dangerouslyUseHTMLString: true, // 添加此行以允许 HTML 字符串
callback: action => {
Expand Down Expand Up @@ -337,7 +337,7 @@ <h2>代理IP列表</h2>
.catch(error => console.error('Error deleting data:', error));
}
},
async addSingleDnsRecord(ip) {
async addSingleDnsRecord(id, ip) {
if (confirm(`确定要解析ip: ${ip} 这条记录的到dns记录中吗?`)) {
await axios.post(`${this.apiUrl}/proxyIp/addSingleDnsRecord`, {id: id})
.then(response => {
Expand Down

0 comments on commit d5e5ea6

Please sign in to comment.