From 9ed92e06fd609f008ca16f39b2aec32847a8a167 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Sat, 27 Aug 2022 18:45:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=A1=A8=E5=A4=B4=E6=8E=92?= =?UTF-8?q?=E5=BA=8F=E5=9B=BE=E6=A0=87=E4=B8=8A=E6=96=87=E5=AD=97=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/public/js/components/common/sort-arrow.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/web/public/js/components/common/sort-arrow.js b/web/public/js/components/common/sort-arrow.js index b80cf7db..0b1851c0 100644 --- a/web/public/js/components/common/sort-arrow.js +++ b/web/public/js/components/common/sort-arrow.js @@ -4,6 +4,7 @@ Vue.component("sort-arrow", { data: function () { let url = window.location.toString() let order = "" + let iconTitle = "" let newArgs = [] if (window.location.search != null && window.location.search.length > 0) { let queryString = window.location.search.substring(1) @@ -26,10 +27,13 @@ Vue.component("sort-arrow", { } if (order == "asc") { newArgs.push(this.name + "=desc") + iconTitle = "当前正序排列" } else if (order == "desc") { newArgs.push(this.name + "=asc") + iconTitle = "当前倒序排列" } else { newArgs.push(this.name + "=desc") + iconTitle = "当前正序排列" } let qIndex = url.indexOf("?") @@ -41,8 +45,9 @@ Vue.component("sort-arrow", { return { order: order, - url: url + url: url, + iconTitle: iconTitle } }, - template: `  ` + template: `  ` }) \ No newline at end of file