mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-10-14 21:20:48 +08:00
fix: DNS overrides could not be edited in advanced mode
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
- macOS 12(Monterey) 首页 IP 卡兼容性
|
||||
- 代理卡可能显示的通信错误,但实际可用
|
||||
- 修复 Fake-IP 模式开启 IPv6 后未生成 fake-ip-range6
|
||||
- 修复 DNS 覆写的高级模式无法正常编辑
|
||||
|
||||
<details>
|
||||
<summary><strong> ✨ 新增功能 </strong></summary>
|
||||
|
||||
@@ -31,7 +31,6 @@ import { useClash } from '@/hooks/use-clash'
|
||||
import { showNotice } from '@/services/notice-service'
|
||||
import { useThemeMode } from '@/services/states'
|
||||
import type { MonacoEditorInstance } from '@/types/monaco'
|
||||
import { debugLog } from '@/utils/debug'
|
||||
import getSystem from '@/utils/get-system'
|
||||
|
||||
const Item = styled(ListItem)(() => ({
|
||||
@@ -591,18 +590,6 @@ export function DnsViewer({ ref }: { ref?: Ref<DialogRef> }) {
|
||||
// YAML编辑器内容变更处理
|
||||
const handleYamlChange = (value?: string) => {
|
||||
setYamlContent(value || '')
|
||||
|
||||
// 允许YAML编辑后立即分析和更新表单值
|
||||
try {
|
||||
const config = yaml.load(value || '') as any
|
||||
if (config && typeof config === 'object') {
|
||||
setTimeout(() => {
|
||||
updateValuesFromConfig(config)
|
||||
}, 300)
|
||||
}
|
||||
} catch (err) {
|
||||
debugLog('YAML解析错误,忽略自动更新', err)
|
||||
}
|
||||
}
|
||||
|
||||
// 处理表单值变化
|
||||
|
||||
Reference in New Issue
Block a user