diff --git a/README.ZH_TW.md b/README.ZH_TW.md index a9f3693..58a152c 100644 --- a/README.ZH_TW.md +++ b/README.ZH_TW.md @@ -1,6 +1,6 @@ # 新聞解析 / News Analyze -[English Version](README.md) [繁體中文版](README_ZH_TW.md) +[English Version](/README.md) [繁體中文版](/README.ZH_TW.md) ![](https://hackatime-badge.hackclub.com/U087ATD163V/news-analyize) ![CodeRabbit Pull Request Reviews](https://img.shields.io/coderabbit/prs/github/hpware/news-analyze?utm_source=oss&utm_medium=github&utm_campaign=hpware%2Fnews-analyze&labelColor=171717&color=FF570A&link=https%3A%2F%2Fcoderabbit.ai&label=CodeRabbit+Reviews) ![LICENSE](https://img.shields.io/github/license/hpware/news-analyze?style=flat) ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/hpware/news-analyze/build_docker_image.yml) diff --git a/README.md b/README.md index b583aaf..8acb24d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # 新聞解析 / News Analyze -[English Version](README.md) [繁體中文版](README_ZH_TW.md) +[English Version](/README.md) [繁體中文版](/README.ZH_TW.md) ![](https://hackatime-badge.hackclub.com/U087ATD163V/news-analyize) ![CodeRabbit Pull Request Reviews](https://img.shields.io/coderabbit/prs/github/hpware/news-analyze?utm_source=oss&utm_medium=github&utm_campaign=hpware%2Fnews-analyze&labelColor=171717&color=FF570A&link=https%3A%2F%2Fcoderabbit.ai&label=CodeRabbit+Reviews) ![LICENSE](https://img.shields.io/github/license/hpware/news-analyze?style=flat) ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/hpware/news-analyze/build_docker_image.yml) diff --git a/components/DraggableWindow.vue b/components/DraggableWindow.vue index acccd11..e48dc7c 100644 --- a/components/DraggableWindow.vue +++ b/components/DraggableWindow.vue @@ -33,11 +33,11 @@ const titleOrg = computed(() => props.title); const titleMaxRegexDetection = /[a-zA-Z0-9]{,10}/; const title = ref("Draggable Window"); onMounted(() => { - if (!titleMaxRegexDetection.test(titleOrg)) { + if (!titleMaxRegexDetection.test(titleOrg.value)) { console.log("Max Detected!!"); } else { - title.value = titleOrg; } + title.value = titleOrg.value; }); const isDragging = ref(false); diff --git a/components/app/windows/news.vue b/components/app/windows/news.vue index 1e9511a..dcc3871 100644 --- a/components/app/windows/news.vue +++ b/components/app/windows/news.vue @@ -246,7 +246,7 @@ const testmessage = await translate("嗨", { from: "zh", to: "en" }); class="disabled:cursor-not-allowed" :disabled="isPrimary(item.url, true) || switchTabs" > - {{ locale === "en" ? item.text : testmessage }} + {{ true ? item.text : testmessage }}