标签页标题 #2

Merged
pengda merged 1 commits from wpd_title into master 1 month ago
  1. 4
      src/router/index.js
  2. 2
      src/views/super/Ranking/RankBatchList.vue
  3. 2
      src/views/super/Ranking/RankDetail.vue
  4. 2
      src/views/super/Ranking/RankList.vue

4
src/router/index.js

@ -182,13 +182,13 @@ const routes = [{
path: '/super/ranking/detail',
name: '详情',
component: () => import( /* webpackChunkName: "Ranking" */ '../views/super/Ranking/RankDetail.vue'),
props: {rank_type: 1, type: 'day', showDateSelect: false}
props: {pageTitle:'详情',rank_type: 1, type: 'day', showDateSelect: false}
},
{
path: '/super/ranking/list',
name: '列表',
component: () => import( /* webpackChunkName: "Ranking" */ '../views/super/Ranking/RankList.vue'),
props: {}
props: {pageTitle:'排行',}
},
]

2
src/views/super/Ranking/RankBatchList.vue

@ -249,6 +249,8 @@ export default {
},
methods: {
init() {
document.title = this.pageTitle;
this.text = this.getNowDate()
this.dataType = this.type
this.dataRank = this.rank_type

2
src/views/super/Ranking/RankDetail.vue

@ -306,6 +306,8 @@ export default {
},
methods: {
init() {
document.title = this.pageTitle;
this.text = ""
if (this.showDateSelect) this.text = this.getNowYear()
this.dataRank = this.rank_type

2
src/views/super/Ranking/RankList.vue

@ -287,6 +287,8 @@ export default {
},
methods: {
init() {
document.title = this.pageTitle;
this.text = this.getNowDate()
this.dataType = this.type
this.dataRank = this.rank_type

Loading…
Cancel
Save