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