Skip to content

Commit

Permalink
[bug] no analyze data error
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiram committed Nov 23, 2024
1 parent 23a0575 commit 3021581
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/renderer/src/locales/lang/en_US/pages/player.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export default {
noApi: 'NoApi',
noData: 'NoData',
header: {
backMain: 'BackToMain',
},
Expand Down
2 changes: 2 additions & 0 deletions src/renderer/src/locales/lang/zh_CN/pages/player.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export default {
noApi: '无接口',
noData: '无数据',
header: {
backMain: '回到主界面',
},
Expand Down
5 changes: 3 additions & 2 deletions src/renderer/src/pages/film/components/Detail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@
</template>
</t-button>
<t-dropdown-menu>
<t-dropdown-item v-for="item in analyzeData.list" :key="item.id" :value="item.id" @click="switchAnalyzeEvent(item.id)">
<span :class="[item.id === active.analyzeId ? 'active' : '']">{{ item.name }}</span>
<t-dropdown-item v-for="item in analyzeData.list" :key="item.id" :active="item.id === active.analyzeId" @click="switchAnalyzeEvent(item.id)">
<span>{{ item.name }}</span>
</t-dropdown-item>
<t-dropdown-item v-if="analyzeData.list.length === 0">{{ $t('pages.player.noApi') }}</t-dropdown-item>
</t-dropdown-menu>
</t-dropdown>
</div>
Expand Down
5 changes: 3 additions & 2 deletions src/renderer/src/pages/play/componets/AsideFilm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,10 @@
</template>
</t-button>
<t-dropdown-menu>
<t-dropdown-item v-for="item in analyzeData.list" :key="item.id" :value="item.id" @click="switchAnalyzeEvent(item.id)">
<span :class="[item.id === active.analyzeId ? 'active' : '']">{{ item.name }}</span>
<t-dropdown-item v-for="item in analyzeData.list" :key="item.id" :active="item.id === active.analyzeId" @click="switchAnalyzeEvent(item.id)">
<span>{{ item.name }}</span>
</t-dropdown-item>
<t-dropdown-item v-if="analyzeData.list.length === 0">{{ $t('pages.player.noApi') }}</t-dropdown-item>
</t-dropdown-menu>
</t-dropdown>
</div>
Expand Down

0 comments on commit 3021581

Please sign in to comment.