temlate syntax内で条件分岐

三項演算子とテンプレート文字列を使う

<div :to="/foo?param=" + `${this.$store.state.something.status === "profile" ? "profile" : "home"}`>

ref:

developer.mozilla.org

stackoverflow.com

確かな力が身につくJavaScript「超」入門 第2版