|
|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<app-view class="news-list" flex>
|
|
|
<template #header>
|
|
|
- <app-navbar :title="title" :show-back-button="showBackButton" />
|
|
|
+ <app-navbar :title="t('routes.news')" :show-back-button="showBackButton" />
|
|
|
</template>
|
|
|
<Tabs v-if="localizedColumnList.length != 0" v-model:active="currentColumnId" @change="onClickTab">
|
|
|
<template v-for="(item, index) in localizedColumnList" :key="index">
|
|
|
@@ -31,16 +31,13 @@ import { queryNewTitles, querySiteColumnConfig } from '@/services/api/news'
|
|
|
import AppPullRefresh from '@mobile/components/base/pull-refresh/index.vue'
|
|
|
|
|
|
defineProps({
|
|
|
- title: {
|
|
|
- type: String,
|
|
|
- default: i18n.global.t('routes.news')
|
|
|
- },
|
|
|
showBackButton: {
|
|
|
type: Boolean,
|
|
|
default: true
|
|
|
},
|
|
|
})
|
|
|
|
|
|
+const { t } = i18n.global
|
|
|
const pullRefreshRef = shallowRef()
|
|
|
const currentColumnId = shallowRef(0)
|
|
|
const error = shallowRef(false)
|