mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-07 15:20:25 +08:00
节点增加DNS解析库类型设置
This commit is contained in:
@@ -11650,6 +11650,12 @@ Vue.component("plus-label", {
|
||||
template: `<span style="color: #B18701;">Plus专属功能。</span>`
|
||||
})
|
||||
|
||||
// 提醒设置项为专业设置
|
||||
Vue.component("pro-warning-label", {
|
||||
template: `<span><i class="icon warning circle"></i>注意:通常不需要修改;如要修改,请在专家指导下进行。</span>`
|
||||
})
|
||||
|
||||
|
||||
/**
|
||||
* 一级菜单
|
||||
*/
|
||||
@@ -14242,6 +14248,50 @@ Vue.component("dns-domain-selector", {
|
||||
</div>`
|
||||
})
|
||||
|
||||
Vue.component("dns-resolver-config-box", {
|
||||
props:["v-dns-resolver-config"],
|
||||
data: function () {
|
||||
let config = this.vDnsResolverConfig
|
||||
if (config == null) {
|
||||
config = {
|
||||
type: "default"
|
||||
}
|
||||
}
|
||||
return {
|
||||
config: config,
|
||||
types: [
|
||||
{
|
||||
name: "默认",
|
||||
code: "default"
|
||||
},
|
||||
{
|
||||
name: "CGO",
|
||||
code: "cgo"
|
||||
},
|
||||
{
|
||||
name: "Go原生",
|
||||
code: "goNative"
|
||||
},
|
||||
]
|
||||
}
|
||||
},
|
||||
template: `<div>
|
||||
<input type="hidden" name="dnsResolverJSON" :value="JSON.stringify(config)"/>
|
||||
<table class="ui table definition selectable">
|
||||
<tr>
|
||||
<td class="title">使用的DNS解析库</td>
|
||||
<td>
|
||||
<select class="ui dropdown auto-width" v-model="config.type">
|
||||
<option v-for="t in types" :value="t.code">{{t.name}}</option>
|
||||
</select>
|
||||
<p class="comment">修改此项配置后,需要重启节点进程才会生效。<pro-warning-label></pro-warning-label></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="margin"></div>
|
||||
</div>`
|
||||
})
|
||||
|
||||
Vue.component("grant-selector", {
|
||||
props: ["v-grant", "v-node-cluster-id", "v-ns-cluster-id"],
|
||||
data: function () {
|
||||
|
||||
Reference in New Issue
Block a user