v-model表示选中的高亮是索引还是name,默认类型是number|string,active在js响应中定义
mounted() {
switch (window.location.pathname) {
case '/films': this.active = 0; break;
case '/cinemas': this.active = 1; break;
case '/center': this.active = 2; break;
default: this.active = 0;
}
}