许成详 6 лет назад
Родитель
Сommit
13da802eca
1 измененных файлов: 2 добавлений и 2 удалений
  1. 2
    2
      src/pages/page3.vue

+ 2
- 2
src/pages/page3.vue Просмотреть файл

@@ -178,9 +178,9 @@ export default {
178 178
       'emptyPageDetail'
179 179
     ]),
180 180
     newData (info) {
181
-      if (info.classId === '1' && this.users.filter(x => x.classId === '1').length > 0) {
181
+      if (info.classId - 0 === 1 && this.users.filter(x => x.classId - 0 === 1).length > 0) {
182 182
         this.users = this.users.map((x) => {
183
-          if (x.classId === '1') {
183
+          if (x.classId - 0 === 1) {
184 184
             return { ...x, createdata: Date.parse(new Date()) }
185 185
           } else {
186 186
             return x