Promises must be handled appropriately or explicitly marked as ignored with the `void` operator.
167 | methods: {
168 | openUnit(it: string):void {
> 169 | this.$router.push(`/unit/${it}`)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
170 | }
171 | },
172 | async beforeMount():Promise<void> {
methods: {
openUnit(it: string):void {
void this.$router.push(`/unit/${it}`);
}
}
methods: {
openUnit(it: string) {
return this.$router.push(`/unit/${it}`);
}
}
methods: {
async openUnit(it: string) {
await this.$router.push(`/unit/${it}`);
}
}
void this.$router.push(`/unit/${it}`);