root 2 年之前
父節點
當前提交
f7ff042666
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/components/studyStudent.vue

+ 2 - 2
src/components/studyStudent.vue

@@ -5299,8 +5299,8 @@ export default {
               this.worksStudent[i] = this.worksStudent[i].sort(function (a, b) {
                 let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
                 let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
-                var scoreA = parseInt(jscoreA);
-                var scoreB = parseInt(jscoreB);
+                var scoreA = parseFloat(jscoreA);
+                var scoreB = parseFloat(jscoreB);
                 if (scoreA == scoreB) {
                   return b.likesCount - a.likesCount;
                 }