mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-10 13:59:56 +08:00
Fix template v-for key position
This commit is contained in:
parent
2dce55541d
commit
ea80fddfa4
1 changed files with 4 additions and 4 deletions
|
@ -40,8 +40,8 @@
|
||||||
<p>{{ i18n.t('notifications.sub_title') }}</p>
|
<p>{{ i18n.t('notifications.sub_title') }}</p>
|
||||||
</div>
|
</div>
|
||||||
<table v-if="notificationsSettings">
|
<table v-if="notificationsSettings">
|
||||||
<template v-for="(_subGroups, group) in notificationsGroups" >
|
<template v-for="(_subGroups, group) in notificationsGroups" :key="group">
|
||||||
<div class="contents" :key="group">
|
<div class="contents">
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan=3 class="pt-6"><h3>{{ i18n.t(`notifications.groups.${group}`) }}</h3></td>
|
<td colspan=3 class="pt-6"><h3>{{ i18n.t(`notifications.groups.${group}`) }}</h3></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -51,8 +51,8 @@
|
||||||
<td class="p-2.5 text-base w-32">{{ i18n.t('notifications.email') }}</td>
|
<td class="p-2.5 text-base w-32">{{ i18n.t('notifications.email') }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</div>
|
</div>
|
||||||
<template v-for="(_notifications, subGroup, i) in notificationsGroups[group]" >
|
<template v-for="(_notifications, subGroup, i) in notificationsGroups[group]" :key="subGroup">
|
||||||
<tr :key="subGroup"
|
<tr
|
||||||
class="text-base border-transparent border-b-sn-super-light-grey border-solid"
|
class="text-base border-transparent border-b-sn-super-light-grey border-solid"
|
||||||
:class="{'border-t-sn-super-light-grey': i == 0}"
|
:class="{'border-t-sn-super-light-grey': i == 0}"
|
||||||
>
|
>
|
||||||
|
|
Loading…
Add table
Reference in a new issue