Browse Source

feat: fix

gemercheung 6 months ago
parent
commit
9c27e3962d

+ 1 - 0
packages/web/src/locales/json/en.json

@@ -35,5 +35,6 @@
   "next_article": " NEXT >",
   "no_data": " No Data",
   "no_data_article": "others",
+  "no_article": "Article not exist",
   "go_home": "Go Homepage"
 }

+ 1 - 0
packages/web/src/locales/json/zh.json

@@ -36,5 +36,6 @@
   "next_article": " 下一篇 >",
   "no_data": "无数据",
   "no_data_article": "看看别的",
+  "no_article": "文章不存在",
   "go_home": "回首页"
 }

+ 1 - 1
packages/web/src/pages/showdoc/[id].vue

@@ -70,7 +70,7 @@
     </div>
     <div v-else>
 
-      <n-empty :description="$t('no_data')">
+      <n-empty :description="$t('no_article')">
         <template #extra>
           {{ $t('no_data_article') }}
           <n-button size="small" type="tertiary" @click="router.push('/')">