chore: 初始化项目 — uni-app + Vue3 + TypeScript 脚手架
This commit is contained in:
+33
@@ -0,0 +1,33 @@
|
||||
<script setup lang="ts">
|
||||
import { onLaunch, onShow, onHide } from "@dcloudio/uni-app"
|
||||
|
||||
onLaunch(() => {
|
||||
const logs = uni.getStorageSync('logs') || []
|
||||
logs.unshift(Date.now())
|
||||
uni.setStorageSync('logs', logs)
|
||||
})
|
||||
|
||||
onShow(() => {
|
||||
})
|
||||
|
||||
onHide(() => {
|
||||
})
|
||||
</script>
|
||||
|
||||
<style>
|
||||
page {
|
||||
min-height: 100vh;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
.container {
|
||||
padding: 30rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.flex-center {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user