소스 검색

fix: 修改 footer 位置的 doc 链接地址

MTrun 3 년 전
부모
커밋
f2af017925
1개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 5 3
      src/layout/components/Footer/index.vue

+ 5 - 3
src/layout/components/Footer/index.vue

@@ -3,15 +3,17 @@
     <slot>
       <n-text depth="2">
         <n-a>{{ $t('global.doc_addr') }}: </n-a>
-        <n-a italic href="http://www.mtruning.club/">
-          http://www.mtruning.club/
+        <n-a italic :href="docPath">
+          {{docPath}}
         </n-a>
       </n-text>
     </slot>
   </div>
 </template>
 
-<script setup lang="ts"></script>
+<script setup lang="ts">
+import { docPath } from '@/settings/pathConst'
+</script>
 
 <style lang="scss" scoped>
 @include go(footer) {