tangning hai 1 ano
pai
achega
bbc1389143
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);