Skip to content

Commit

Permalink
change default value in new key
Browse files Browse the repository at this point in the history
  • Loading branch information
qishibo committed Mar 31, 2021
1 parent 3f343df commit d5c5ee1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/OperateItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -200,16 +200,16 @@ export default {
return this.client.set(key, '');
}
case 'hash': {
return this.client.hset(key, 'field', 'value');
return this.client.hset(key, 'New field', 'New value');
}
case 'list': {
return this.client.lpush(key, 'value');
return this.client.lpush(key, 'New member');
}
case 'set': {
return this.client.sadd(key, 'value');
return this.client.sadd(key, 'New member');
}
case 'zset': {
return this.client.zadd(key, 0, 'member');
return this.client.zadd(key, 0, 'New member');
}
}
},
Expand Down

0 comments on commit d5c5ee1

Please sign in to comment.