mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-30 10:14:03 +00:00
Fix linter issues
This commit is contained in:
parent
deaec80cb0
commit
be461a0efd
1 changed files with 4 additions and 4 deletions
|
@ -55,8 +55,8 @@
|
||||||
|
|
||||||
<div class="my-3">
|
<div class="my-3">
|
||||||
<label for="defaultLocale" class="form-label">{{ $t("Default Locale") }}</label>
|
<label for="defaultLocale" class="form-label">{{ $t("Default Locale") }}</label>
|
||||||
<select v-model="config.defaultLocale" class="form-select" id="defaultLocale">
|
<select id="defaultLocale" v-model="config.defaultLocale" class="form-select">
|
||||||
<option v-for="locale in $i18n.availableLocales" :value="locale" :text="$i18n.messages[locale].languageName"></option>
|
<option v-for="locale in $i18n.availableLocales" :key="locale" :value="locale" :text="$i18n.messages[locale].languageName"></option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -156,7 +156,7 @@
|
||||||
<!-- Locale Selector -->
|
<!-- Locale Selector -->
|
||||||
<span class="language-selector">
|
<span class="language-selector">
|
||||||
<select v-model="$root.language" class="form-select">
|
<select v-model="$root.language" class="form-select">
|
||||||
<option v-for="locale in $i18n.availableLocales" :value="locale" :text="$i18n.messages[locale].languageName"></option>
|
<option v-for="locale in $i18n.availableLocales" :key="locale" :value="locale" :text="$i18n.messages[locale].languageName"></option>
|
||||||
</select>
|
</select>
|
||||||
</span>
|
</span>
|
||||||
</h1>
|
</h1>
|
||||||
|
@ -718,7 +718,7 @@ export default {
|
||||||
this.$root.publicGroupList = res.data.publicGroupList;
|
this.$root.publicGroupList = res.data.publicGroupList;
|
||||||
|
|
||||||
if (!localStorage.locale && this.config.defaultLocale) {
|
if (!localStorage.locale && this.config.defaultLocale) {
|
||||||
this.$root.changeCurrentPageLang(this.config.defaultLocale)
|
this.$root.changeCurrentPageLang(this.config.defaultLocale);
|
||||||
}
|
}
|
||||||
}).catch( function (error) {
|
}).catch( function (error) {
|
||||||
if (error.response.status === 404) {
|
if (error.response.status === 404) {
|
||||||
|
|
Loading…
Reference in a new issue