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/work/index.vue |   38 +++++++++++++++++++++++---------------
 1 files changed, 23 insertions(+), 15 deletions(-)

diff --git a/src/pages/work/index.vue b/src/pages/work/index.vue
index b682f37..110e945 100644
--- a/src/pages/work/index.vue
+++ b/src/pages/work/index.vue
@@ -1,10 +1,15 @@
 <!-- 事件工单 -->
 <template>
   <view class="min-h-screen flex flex-col items-center">
-    <image class="mb-50rpx mt-200rpx h-200rpx w-200rpx" src="@/static/images/logo.png" width="200rpx" height="200rpx" />
+    <image
+      class="mb-50rpx mt-200rpx h-200rpx w-200rpx"
+      src="@/static/images/logo.png"
+      width="200rpx"
+      height="200rpx"
+    />
     <view class="flex justify-center">
       <text class="font-size-36rpx">
-        {{ $t('home.intro') }}
+        {{ $t("home.intro") }}
       </text>
     </view>
     <view class="mt-100rpx flex gap-30rpx">
@@ -16,14 +21,18 @@
 
     <!-- #ifdef MP-WEIXIN -->
     <!-- 隐私协议组件 -->
-    <agree-privacy v-model="showAgreePrivacy" :disable-check-privacy="false" @agree="handleAgree" />
+    <agree-privacy
+      v-model="showAgreePrivacy"
+      :disable-check-privacy="false"
+      @agree="handleAgree"
+    />
     <!-- #endif -->
   </view>
 </template>
 
 <script setup>
 // #ifdef MP-WEIXIN
-import { useShare } from "@/hooks"
+import { useShare } from "@/hooks";
 // #endif
 
 // #ifdef MP-WEIXIN
@@ -31,29 +40,28 @@
 const { onShareAppMessage, onShareTimeline } = useShare({
   title: "首页",
   path: "pages/tab/home/index",
-  imageUrl: ""
-})
-onShareAppMessage()
-onShareTimeline()
+  imageUrl: "",
+});
+onShareAppMessage();
+onShareTimeline();
 // #endif
 
-const title = ref()
-title.value = import.meta.env.VITE_APP_TITLE
+const title = ref();
+title.value = import.meta.env.VITE_APP_TITLE;
 
-const showAgreePrivacy = ref(false)
+const showAgreePrivacy = ref(false);
 
 // 同意隐私协议
 function handleAgree() {
-  console.log("同意隐私政策")
+  console.log("同意隐私政策");
 }
 
 // 打开github
 function toGithub() {
   if (window?.open) {
-    window.open("https://github.com/oyjt/uniapp-vue3-template")
+    window.open("https://github.com/oyjt/uniapp-vue3-template");
   } else {
-    uni.$u.toast("请使用浏览器打开")
+    uni.$u.toast("请使用浏览器打开");
   }
 }
-
 </script>

--
Gitblit v1.9.3