Переглянути джерело

feat: 优化 index,可以直接点击跳转 a 标签

菲鸽 2 роки тому
батько
коміт
5cf8302436
2 змінених файлів з 13 додано та 1 видалено
  1. 1 1
      README.md
  2. 12 0
      src/pages/index/index.vue

+ 1 - 1
README.md

@@ -22,7 +22,7 @@
 
 </div>
 
-<div align="center"><b>unibest 是由 uniapp + Vue3 + Ts + Vite4 + UnoCss + UniUI 驱动的跨端快速启动模板,使用 VS Code 开发,具有代码提示、自动格式化、统一配置、代码片段等功能,同时内置了大量平时开发常用的基本组件,开箱即用,让你编写 uniapp 拥有 best 体验。</b></div>
+<div align="center"><b>unibest 是由 uniapp + Vue3 + Ts + Vite4 + UnoCss + UniUI + VSCode 驱动的跨端快速启动模板,具有代码提示、自动格式化、统一配置、代码片段等功能,内置了许多常用的基本组件和基本功能,开箱即用,让你编写 uniapp 拥有 best 体验。</b></div>
 
 ![](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/rainbow.png)
 

+ 12 - 0
src/pages/index/index.vue

@@ -23,13 +23,25 @@
       uniapp 拥有 best 体验。</view
     >
     <view class="text-blue mt-8 text-center"> 详细示例 参考 hello-unibest 项目 </view>
+    <!-- #ifdef H5 -->
+    <view class="my-2 text-center">
+      <a class="my-2 text-center" href="https://github.com/codercup/hello-unibest" target="_blank">
+        https://github.com/codercup/hello-unibest
+      </a>
+    </view>
+    <!-- #endif -->
+    <!-- #ifndef H5 -->
     <view class="my-2 text-center">https://github.com/codercup/hello-unibest</view>
+    <!-- #endif -->
   </view>
 </template>
 
 <script lang="ts" setup>
 // 获取屏幕边界到安全区域距离
 const { safeAreaInsets } = uni.getSystemInfoSync()
+
+const author = ref('菲鸽')
+console.log(author)
 </script>
 
 <style>