更新自动按涨跌排序

master
宇天 2020-07-27 14:24:29 +08:00
parent 3caad617de
commit da9b62fa75
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "io.yutent.gaystat", "name": "io.yutent.gaystat",
"version": "1.2.0", "version": "1.3.0",
"description": "搞基数据", "description": "搞基数据",
"main": "src/main.js", "main": "src/main.js",
"scripts": { "scripts": {

View File

@ -142,6 +142,10 @@ Anot({
item.curr = info.gsz item.curr = info.gsz
item.percent = +info.gszzl item.percent = +info.gszzl
this.list.sort((a, b) => {
return b.percent - a.percent
})
Anot.ls('watch_list', this.list.$model) Anot.ls('watch_list', this.list.$model)
}, },