(options, selectedValue)
| 409 | |
| 410 | const settingManager = { |
| 411 | generateOptions(options, selectedValue) { |
| 412 | return Object.entries(options).map(([key, value]) => { |
| 413 | // 检查是否为需要禁用的选项 |
| 414 | const isDisabled = ['---【机器翻译】---', '---【AI翻译】---', '---【本地大模型】---'].includes(value); |
| 415 | return `<option value="${key}" ${selectedValue === key ? 'selected' : ''} ${isDisabled ? 'disabled' : ''}>${value}</option>`; |
| 416 | }).join(''); |
| 417 | }, |
| 418 | |
| 419 | // 设置中心界面 |
| 420 | setSetting() { |
nothing calls this directly
no outgoing calls
no test coverage detected