title: vuejs - changing return value inside computed
body: <p>I use simply computed to get correct values from my array to <code>select</code> field:</p>
  
  <pre><code>computed: {
     specialitySelect() {
     return this.$store.state.physicianListSpeciality
     }
  }
  </code></pre>
  
  <p>this works fine, but I need to get proper values depend on <code>offer.person</code> value, which could be: <code>physician</code>, <code>nurse</code> etc...</p>
  
  <p>How can I change return value to be: in  case of nurse:</p>
  
  <pre><code>computed: {
     specialitySelect() {
     return this.$store.state.nurseListSpeciality
     }
  }
  </code></pre>
  
  <p>If this would be a function I could easily do:</p>
  
  <pre><code>methods: {
     specialitySelect(person) {
     return this.$store.state[person]ListSpeciality
     }
  }
  </code></pre>
  
  <p>but in <code>computed</code> I cannot do it. Is there any other solution that I could use instead?</p>