[Vuejs]-Why do I get this error if I return value using questionmark operator in Vue.js

0πŸ‘

Its not the same, in the previous approach you return an function. Try it like this:

buttonText() {
    return () => this.omitDescription ? 'プロフィールをもっと見る' : 'γƒ—γƒ­γƒ•γ‚£γƒΌγƒ«γ‚’ι–‰γ˜γ‚‹';
}

Leave a comment