Michael Wang 4 years ago
parent
commit
5c50fa49b8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/RoleSelect.vue

+ 1 - 1
src/components/RoleSelect.vue

@@ -48,7 +48,7 @@ export default {
   },
   },
   methods: {
   methods: {
     select() {
     select() {
-      if (this.selected.length > 1) {
+      if (this.multiple && this.selected.length > 1) {
         this.selected = this.selected.splice(1);
         this.selected = this.selected.splice(1);
       }
       }
       this.$emit("input", this.selected);
       this.$emit("input", this.selected);