diff --git a/src/App.vue b/src/App.vue index 4e2716e877cbffaae36645cde3938d7379ce11dc..b2996e98b261dfd8203713636ab5d03f5d9ab793 100644 --- a/src/App.vue +++ b/src/App.vue @@ -3,7 +3,7 @@ import GameChart from './components/GameChart.vue' import SearchGrade from './components/SearchGrade.vue' import { reactive, onMounted } from 'vue'; const state = reactive({ - current: 'grade查询分数' + current: '新星赛道选手信息可视化' }) onMounted(() => { const href = window.location.href @@ -17,10 +17,11 @@ onMounted(() => { const value = itemArray[1] data[key] = value }) + if (data['type'] = 'csdn_game') { + state.current = '新星赛道选手信息可视化' + } } - if(data['type']='csdn_game'){ - state.current='新星赛道选手信息可视化' - } + }) diff --git a/src/components/GameChart.vue b/src/components/GameChart.vue index 302bf7ea2ef1091135886a20510efe7229bf8162..1f0d76405b4d3c5251db4a442841047e2ff09c26 100644 --- a/src/components/GameChart.vue +++ b/src/components/GameChart.vue @@ -4,15 +4,25 @@ {{ state.title }} -