许成详 6 lat temu
rodzic
commit
13da802eca
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2
    2
      src/pages/page3.vue

+ 2
- 2
src/pages/page3.vue Wyświetl plik

@@ -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