diff --git a/AIchat.rar b/AIchat.rar
deleted file mode 100644
index 5efef6c..0000000
Binary files a/AIchat.rar and /dev/null differ
diff --git a/src/App.vue b/src/App.vue
index d32c900..a83cff9 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,6 +1,8 @@
diff --git a/src/pages/preview/index.vue b/src/pages/preview/index.vue
index 4390a0d..21d3b8b 100644
--- a/src/pages/preview/index.vue
+++ b/src/pages/preview/index.vue
@@ -1,5 +1,5 @@
-
+
@@ -64,4 +64,8 @@ onMounted(() => {
})
-
+
diff --git a/src/store/status/index.js b/src/store/status/index.js
new file mode 100644
index 0000000..785d3e7
--- /dev/null
+++ b/src/store/status/index.js
@@ -0,0 +1,15 @@
+import {ref} from 'vue'
+import {createGlobalState, useStorage} from "@vueuse/core";
+import {uniStorage} from "@/utils/uniStorage";
+export const useStatus =createGlobalState(()=>{
+ const currentNavbar=ref({title:'',url:''})
+ const applyTabbarIndex=ref(0)
+ const statusBarHeight = ref(window?.plus?.navigator?.getStatusbarHeight() ?? 0)
+ const tabBarIndex = useStorage('tabBarIndex', 0, uniStorage)
+ return {
+ statusBarHeight,
+ applyTabbarIndex,
+ currentNavbar,
+ tabBarIndex
+ }
+})
diff --git a/src/utils/uniStorage.js b/src/utils/uniStorage.js
new file mode 100644
index 0000000..d36d769
--- /dev/null
+++ b/src/utils/uniStorage.js
@@ -0,0 +1,11 @@
+export const uniStorage = {
+ getItem(key) {
+ return uni.getStorageSync(key) || null
+ },
+ setItem(key, value) {
+ return uni.setStorageSync(key, value)
+ },
+ removeItem(key) {
+ return uni.removeStorageSync(key)
+ },
+}