cankao-h5/src/App.vue

27 lines
555 B
Vue
Raw Normal View History

2025-08-10 16:44:02 +08:00
<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(() => {});
2025-08-10 16:44:02 +08:00
onHide(() => {
console.log("App Hide");
});
</script>
<style lang="scss">
/* 注意要写在第一行同时给style标签加入lang="scss"属性 */
@import "@/uni_modules/uview-plus/index.scss";
2025-08-10 16:44:02 +08:00
#app,
uni-app,
uni-page,
uni-page-wrapper {
height: calc(100vh - 131rpx);
}
</style>