From b12cdf25d5168927f581c0847bc139b99bb3fa26 Mon Sep 17 00:00:00 2001 From: haiyangcui Date: Sun, 8 Nov 2020 12:28:12 +0100 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/IPTV.vue | 7 +++---- src/components/Star.vue | 14 ++++++-------- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/src/components/IPTV.vue b/src/components/IPTV.vue index 796da18..7ab2e90 100644 --- a/src/components/IPTV.vue +++ b/src/components/IPTV.vue @@ -56,9 +56,8 @@ @@ -30,9 +30,8 @@ @@ -51,6 +50,8 @@ label="备注"> @@ -206,11 +207,8 @@ export default { handleSortChange (column, prop, order) { this.updateDatabase() }, - sortByName (a, b) { - return a.name.localeCompare(b.name, 'zh') - }, - sortByType (a, b) { - return a.type.localeCompare(b.type) + sortByLocaleCompare (a, b) { + return a.localeCompare(b, 'zh') }, detailEvent (e) { this.detail = {