From 537286fcc9b37fd6cfbea1d1f07583a77adcef6b Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期三, 03 九月 2025 17:08:38 +0800
Subject: [PATCH] Merge branch 'master' of http://120.26.58.240:8888/r/flexJobMiniApp

---
 apps/cMiniApp/src/hooks/app.ts |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/apps/cMiniApp/src/hooks/app.ts b/apps/cMiniApp/src/hooks/app.ts
new file mode 100644
index 0000000..dfe8750
--- /dev/null
+++ b/apps/cMiniApp/src/hooks/app.ts
@@ -0,0 +1,13 @@
+import Taro from '@tarojs/taro';
+import { useUserStoreWithOut } from '@/stores/modules/user';
+
+export function useLaunchOptions() {
+  const options = Taro.getLaunchOptionsSync();
+  const userStore = useUserStoreWithOut();
+  console.log('userStore: ', userStore);
+  if (userStore.firstLaunch) {
+    userStore.setFirstLaunch(false);
+    return options;
+  }
+  return {} as Taro.getLaunchOptionsSync.LaunchOptions;
+}

--
Gitblit v1.9.1