<template>
	<view class="loading-container">
		<text>页面加载中...</text>
	</view>
</template>
<script setup>
import { onLoad } from '@dcloudio/uni-app';

// 跳转
const redirectTo = (url) => {
	uni.redirectTo({
		url: url
	})
}

// 页面加载时自动跳转
onLoad(() => {
	// 自动跳转
	setTimeout(() => {
		redirectTo('/pages/post');
	}); // 自动跳转
})
</script>
<style scoped>
.loading-container {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;
}
</style>