From b9a26af5b08d3d92a6c38fd90e023bc4706f19eb Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Mon, 29 Sep 2025 14:22:30 +0800
Subject: [PATCH] feat:一些基础文件格式化处理

---
 src/pages/user/index.vue |   23 ++++++++++-------------
 1 files changed, 10 insertions(+), 13 deletions(-)

diff --git a/src/pages/user/index.vue b/src/pages/user/index.vue
index 6c8915a..5f1bce3 100644
--- a/src/pages/user/index.vue
+++ b/src/pages/user/index.vue
@@ -7,9 +7,7 @@
         <u-avatar src="/static/images/logo.png" size="70" />
       </view>
       <view class="flex-1">
-        <view class="pb-20rpx text-36rpx">
-          uni-app
-        </view>
+        <view class="pb-20rpx text-36rpx"> uni-app </view>
         <view class="u-tips-color text-28rpx" @click="toCopy">
           微信号:uni-app
         </view>
@@ -46,21 +44,20 @@
 </template>
 
 <script setup>
-import { useClipboard, usePermission } from "@/hooks"
+import { useClipboard, usePermission } from "@/hooks";
 
-const { setClipboardData, getClipboardData } = useClipboard()
+const { setClipboardData, getClipboardData } = useClipboard();
 
 // 复制
 const toCopy = async () => {
-  await setClipboardData({ data: "1234567890" })
-  const data = await getClipboardData()
-  console.log("[ data ] >", data)
-}
+  await setClipboardData({ data: "1234567890" });
+  const data = await getClipboardData();
+  console.log("[ data ] >", data);
+};
 
 // 登录鉴权,微信小程序端点击tabbar的底层逻辑不触发uni.switchTab,需要在页面onShow生命周期中校验权限
 onShow(async () => {
-  const hasPermission = await usePermission()
-  console.log(hasPermission ? "已登录" : "未登录,拦截跳转")
-})
-
+  const hasPermission = await usePermission();
+  console.log(hasPermission ? "已登录" : "未登录,拦截跳转");
+});
 </script>

--
Gitblit v1.9.3