diff --git a/package.json b/package.json index 6e51051..e383edd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dns-host", - "version": "1.1.0", + "version": "1.1.1", "description": "伪域名解析", "main": "src/main.js", "scripts": { diff --git a/src/js/app.js b/src/js/app.js index 49062ad..d2b7058 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -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]) {