fix: fix build warning and linter error

This commit is contained in:
2026-07-19 16:25:46 +08:00
parent 0402f2d2b7
commit 108d1bac5c
5 changed files with 33 additions and 4 deletions
@@ -53,7 +53,7 @@ const cancelUpdateItem = () => {
<div class="paperbox-item-words">
<p v-show="!isEditing">{{ name }}</p>
<div v-show="isEditing" class="control">
<input v-model="editingName" class="input" type="text"></input>
<input v-model="editingName" class="input" type="text" />
</div>
</div>
+1 -1
View File
@@ -33,7 +33,7 @@ const router = createRouter({
routes: routes,
});
router.beforeEach((to, from) => {
router.beforeEach((to, _from) => {
// Only check for those flagged.
const token = useTokenStore();
if (to.meta.requireLoggedInCheck) {
+2 -2
View File
@@ -212,7 +212,7 @@ const deleteSharingItem = async (username: string) => {
</div>
</div>
<div v-for="item in ownedItems.values()" style="display: flex; flex-flow: column; margin-top: 1.25rem;">
<div v-for="item in ownedItems.values()" :key="item[0]" style="display: flex; flex-flow: column; margin-top: 1.25rem;">
<OwnedItem :uuid="item[0]" :name="item[1]" @delete="deleteOwnedItem" @share="shareOwnedItem"
@update="updateOwnedItem" />
</div>
@@ -243,7 +243,7 @@ const deleteSharingItem = async (username: string) => {
</div>
</div>
<div v-for="item in sharingItems" style="display: flex; flex-flow: column; margin-top: 1.25rem;">
<div v-for="item in sharingItems" :key="item" style="display: flex; flex-flow: column; margin-top: 1.25rem;">
<SharingItem :username="item" @delete="deleteSharingItem" />
</div>
</div>