Browse Source

feat: playground用户分组设为默认选项

(cherry picked from commit dd7e9afed43bca3807c4680d28b5cef97f3bf880)
CalciumIon 1 year ago
parent
commit
e291bb02d0
1 changed files with 5 additions and 0 deletions
  1. 5 0
      web/src/components/Playground.js

+ 5 - 0
web/src/components/Playground.js

@@ -84,6 +84,11 @@ const Playground = () => {
       // handleInputChange('group', localGroupOptions[0].value);
       // handleInputChange('group', localGroupOptions[0].value);
 
 
       if (localGroupOptions.length > 0) {
       if (localGroupOptions.length > 0) {
+        // set default group at first
+        localGroupOptions.unshift({
+          label: '用户分组',
+          value: '',
+        });
       } else {
       } else {
         localGroupOptions = [{
         localGroupOptions = [{
           label: '用户分组',
           label: '用户分组',