li.shaoyi 4 ヶ月 前
コミット
a400077768

+ 2 - 5
src/packages/mobile/views/news/list/Index.vue

@@ -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)

+ 1 - 2
src/packages/sjgj/views/news/list/Index.vue

@@ -20,14 +20,13 @@ import { shallowRef } from 'vue'
 import { Cell, Empty } from 'vant'
 import { formatDate } from '@/filters'
 import { useRequest } from '@/hooks/request'
-import { i18n } from "@/stores";
 import { querySiteColumnDetail } from '@/services/api/news'
 import AppPullRefresh from '@mobile/components/base/pull-refresh/index.vue'
 
 const props = defineProps({
   title: {
     type: String,
-    default: i18n.global.t('routes.news')
+    default: '市场资讯'
   },
   showBackButton: {
     type: Boolean,

+ 0 - 3
src/packages/thj/router/index.ts

@@ -150,9 +150,6 @@ const routes: Array<RouteRecordRaw> = [
         path: '',
         name: 'news-list',
         component: () => import('@mobile/views/news/list/Index.vue'),
-        props: {
-          title: '市场信息'
-        },
         meta: {
           ignoreAuth: true,
         },