<script setup lang="ts">
import { onLaunch, onShow, onHide } from "@dcloudio/uni-app";
import { useShareStore } from "@/stores/shareStore";

const stores = useShareStore();

onLaunch(() => {
  console.log("App Launch");
  stores.initWxConfig();
});
onShow(() => { });
onHide(() => {
  console.log("App Hide");
  uni.setStorageSync('homeTabIndex', null)
});
</script>
<style lang="scss">
/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
@import "@/uni_modules/uview-plus/index.scss";

#app,
uni-app,
uni-page,
uni-page-wrapper {
  height: calc(100vh - 131rpx);
}
</style>
