From 79af941467988d726043463dc80609385a598d47 Mon Sep 17 00:00:00 2001 From: Tianyi Pu <912396513@qq.com> Date: Tue, 4 Jun 2024 11:14:55 +0100 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3warning=EF=BC=8C=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front_end/src/i18n/index.ts | 2 ++ front_end/src/views/VideoView.vue | 39 ++++++++++++++----------------- 2 files changed, 20 insertions(+), 21 deletions(-) diff --git a/front_end/src/i18n/index.ts b/front_end/src/i18n/index.ts index 0f477c1..e7aff7f 100644 --- a/front_end/src/i18n/index.ts +++ b/front_end/src/i18n/index.ts @@ -42,6 +42,8 @@ function getDefaultLocale () { export default createI18n({ legacy: false, fallbackLocale: dev.local, + fallbackWarn: false, + missingWarn: false, locale: getDefaultLocale(), messages: getMessages(), }) diff --git a/front_end/src/views/VideoView.vue b/front_end/src/views/VideoView.vue index c9df5e7..d84c8f6 100644 --- a/front_end/src/views/VideoView.vue +++ b/front_end/src/views/VideoView.vue @@ -9,7 +9,8 @@ {{ $t('common.level.' + tag.key) }} + @click="level_tag_selected = key as string; request_videos();">{{ $t('common.level.' + tag.key) + }} @@ -19,39 +20,31 @@ {{ $t('common.prop.'+key) + @click="index_select(key, value)">{{ $t('common.prop.' + key) }} -
+
- - + + + - - {{ columnFormatter(key, scope.row[index_tags[key].key]) }} + {{ columnFormatter(key, scope.row[index_tags[key].key]) }}
- +
@@ -213,7 +206,6 @@ const mod_style = () => { const prevColumn = ref(null); //上一个排序列 const handleSortChange = (sort: any) => { - console.log(sort); for (var key of Object.keys(index_tags)) { // 找到对应的key。很丑陋,but it works if (index_tags[key].key == sort.prop) { if (key != index_tag_selected.value) { // 改变了排序列,清除之前列的排序 @@ -397,4 +389,9 @@ const playVideo = function (uri: string) { display: inline-block; margin: 0; } + +.nobr { + white-space: nowrap; + hyphens: none; +}