Skip to content

Commit 2583551

Browse files
authored
2.7test
1 parent e1fa1bb commit 2583551

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

明文源吗

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3691,6 +3691,10 @@
36913691
const fetchURLInput = document.getElementById('fetchURLInput');
36923692
const latencyTestPort = document.getElementById('latencyTestPort');
36933693
const randomIPCount = document.getElementById('randomIPCount');
3694+
const cfRandomDiv = document.getElementById('cfRandomDiv');
3695+
const randomCountDiv = document.getElementById('randomCountDiv');
3696+
const generateCFIPBtn = document.getElementById('generateCFIPBtn');
3697+
const fetchIPBtn = document.getElementById('fetchIPBtn');
36943698

36953699
if (latencyTestInput) {
36963700
const savedTestInput = localStorage.getItem('latencyTestInput');
@@ -3730,10 +3734,6 @@
37303734
randomCountDiv.style.display = savedSource === 'cfRandom' ? 'block' : 'none';
37313735
}
37323736
}
3733-
const cfRandomDiv = document.getElementById('cfRandomDiv');
3734-
const randomCountDiv = document.getElementById('randomCountDiv');
3735-
const generateCFIPBtn = document.getElementById('generateCFIPBtn');
3736-
const fetchIPBtn = document.getElementById('fetchIPBtn');
37373737

37383738
const CF_CIDR_LIST = [
37393739
'173.245.48.0/20', '103.21.244.0/22', '103.22.200.0/22', '103.31.4.0/22',
@@ -3967,8 +3967,7 @@
39673967

39683968
if (selectedItems.length > 0) {
39693969
const preferredIPsInput = document.getElementById('preferredIPs');
3970-
const currentValue = preferredIPsInput.value.trim();
3971-
const newValue = currentValue ? currentValue + ',' + selectedItems.join(',') : selectedItems.join(',');
3970+
const newValue = selectedItems.join(',');
39723971
preferredIPsInput.value = newValue;
39733972

39743973
addSelectedBtn.disabled = true;
@@ -3982,7 +3981,7 @@
39823981
socksConfig: document.getElementById('socksConfig').value
39833982
};
39843983
await saveConfig(configData);
3985-
showStatus('${isFarsi ? 'موفقیت‌آمیز بود' : '已添加'} ' + selectedItems.length + ' ${isFarsi ? 'مورد و ذخیره شد' : '项并已保存'}', 'success');
3984+
showStatus('${isFarsi ? 'موفقیت‌آمیز بود' : '已替换'} ' + selectedItems.length + ' ${isFarsi ? 'مورد و ذخیره شد' : '项并已保存'}', 'success');
39863985
} catch (err) {
39873986
showStatus('${isFarsi ? 'خطا در ذخیره' : '保存失败'}: ' + err.message, 'error');
39883987
} finally {

0 commit comments

Comments
 (0)