root 2 years ago
parent
commit
f7ff042666
1 changed files with 2 additions and 2 deletions
  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;
                 }