fix(listProxies): modify proxy key name to correct
This commit is contained in:
@@ -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
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user