tangning пре 1 година
родитељ
комит
bbc1389143
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/views/retailer/index.vue

+ 1 - 1
src/views/retailer/index.vue

@@ -148,7 +148,7 @@
               loading: false,
               onChange: async (checked: boolean) => {
                 record.pendingStatus = true;
-                const newStatus = checked ? '1' : '0';
+                const newStatus = checked ? '0' : '1';
                 await banOrUnBan({ id: record.id, status: newStatus });
                 if (checked) {
                   Reflect.set(record, 'status', newStatus);