Use monitor ip to component key when switching monitor menu
</tr>
</table>
<div>
- <component :key="key" :is="currentMenuComponent" v-bind="props"></component>
+ <component :key="props.targetIP" :is="currentMenuComponent" v-bind="props"></component>
</div>
</div>
</div>
currentActiveNavMenu = null;
currentMenuComponent = PerfTest;
- // for rerendering
- key = 1;
-
created() {
this.props.id = this.id;
this.$http.get(`/perftest/api/${this.id}/detail_report`).then(res => {
targetIP: ip,
};
this.currentMenuComponent = Monitor;
- this.key++;
}
showPerftestMenu($event) {
