From 035bac816f462fa80be47bcec767cd57e6a015b8 Mon Sep 17 00:00:00 2001 From: yulixing Date: Sat, 12 Oct 2019 11:19:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BC=98=E5=85=88=E7=BA=A7?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=20=20=2019101201?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ad/edit.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/ad/edit.vue b/src/views/ad/edit.vue index abbd50d..a828db5 100644 --- a/src/views/ad/edit.vue +++ b/src/views/ad/edit.vue @@ -733,7 +733,9 @@ export default { this.sortList = ads.map(item => { return item.ad_sort }) - this.sortList.sort() + this.sortList.sort(function(a, b) { + return a - b + }) } }, changeTarget(val) {