mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-27 21:05:53 +00:00
Fix required key in Vue component iteration
This commit is contained in:
parent
9b4a0da10b
commit
a3dcbd62bc
1 changed files with 3 additions and 1 deletions
|
@ -3,10 +3,11 @@
|
||||||
class="toggle-switch"
|
class="toggle-switch"
|
||||||
>
|
>
|
||||||
<template
|
<template
|
||||||
v-for="item in items"
|
v-for="(item, index) in items"
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
:id="item.value"
|
:id="item.value"
|
||||||
|
:key="index"
|
||||||
:value="item.value"
|
:value="item.value"
|
||||||
:name="groupName"
|
:name="groupName"
|
||||||
type="radio"
|
type="radio"
|
||||||
|
@ -14,6 +15,7 @@
|
||||||
@click="toggle"
|
@click="toggle"
|
||||||
>
|
>
|
||||||
<label
|
<label
|
||||||
|
:key="index"
|
||||||
:for="item.value"
|
:for="item.value"
|
||||||
type="radio"
|
type="radio"
|
||||||
>
|
>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue