记录排序
parent
ceb4f48903
commit
7b9b9f281a
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "dns-host",
|
||||
"version": "1.1.0",
|
||||
"version": "1.1.1",
|
||||
"description": "伪域名解析",
|
||||
"main": "src/main.js",
|
||||
"scripts": {
|
||||
|
|
|
@ -75,7 +75,7 @@ Anot({
|
|||
},
|
||||
toggleDomain(name) {
|
||||
this.activeDomain = name
|
||||
this.records = dict[name]
|
||||
this.records = dict[name].sort((a, b) => a.record.localeCompare(b.record))
|
||||
tmp_records = Object.create(null)
|
||||
for (let it of this.records) {
|
||||
if (tmp_records[it.record]) {
|
||||
|
|
Loading…
Reference in New Issue