fix(listProxies): modify proxy key name to correct

This commit is contained in:
2026-03-23 22:13:30 +08:00
parent 3e4bd77641
commit 5b7c866eb3

View File

@@ -155,7 +155,7 @@
<div v-if="showAddProxyModal" class="modal-overlay" @click="closeAddProxyModal"> <div v-if="showAddProxyModal" class="modal-overlay" @click="closeAddProxyModal">
<div class="modal" @click.stop> <div class="modal" @click.stop>
<h3>Add Proxy</h3> <h3>Add Proxy</h3>
<form @submit.prevent="handleSubmit" class="form"> <form @submit.prevent="handleAddProxySubmit" class="form">
<div class="form-group"> <div class="form-group">
<label>Proxy Name</label> <label>Proxy Name</label>
<input <input
@@ -290,9 +290,9 @@ export default {
proxies.value = proxyList.map(proxy => ({ proxies.value = proxyList.map(proxy => ({
name: proxy.name, name: proxy.name,
type: proxy.type, type: proxy.type,
localIP: proxy.local_ip, localIP: proxy.localIP,
localPort: proxy.local_port, localPort: proxy.localPort,
remotePort: proxy.remote_port remotePort: proxy.remotePort
})); }));
} catch (error) { } catch (error) {
showNotification('Load proxy list failed', 'error'); showNotification('Load proxy list failed', 'error');
@@ -406,7 +406,7 @@ export default {
} }
}; };
const handleSubmit = async () => { const handleAddProxySubmit = async () => {
loading.value = true; loading.value = true;
try { try {
const proxyInfo = { const proxyInfo = {
@@ -450,7 +450,7 @@ export default {
addProxy, addProxy,
closeAddProxyModal, closeAddProxyModal,
handleEditConfiguration, handleEditConfiguration,
handleSubmit handleAddProxySubmit
}; };
} }
}; };