Fixed button translate issue

This commit is contained in:
0xJacky 2022-08-05 12:14:44 +08:00
parent 4b8fc755be
commit b3a5fd91b9
No known key found for this signature in database
GPG key ID: B6E4A6E4A561BAF0
3 changed files with 7 additions and 3 deletions

View file

@ -183,7 +183,9 @@ watch(params, () => {
>
<template #action>
<div class="reset-btn">
<a-button @click="reset_search" v-translate>Reset</a-button>
<a-button @click="reset_search">
<translate>Reset</translate>
</a-button>
</div>
</template>
</std-data-entry>

File diff suppressed because one or more lines are too long

View file

@ -8,7 +8,9 @@ const {$gettext} = useGettext()
<div class="wrapper">
<h1 class="title">{{ $route.meta.status_code || 404 }}</h1>
<p>{{ $route.meta.error?.() ?? $gettext('File Not Found') }}</p>
<a-button type="primary" v-translate @click="$router.push('/')">Back Home</a-button>
<a-button type="primary" @click="$router.push('/')">
<translate>Back Home</translate>
</a-button>
</div>
</template>