fix: 调整项目结构,添加 src 目录

This commit is contained in:
Agent
2026-03-23 15:03:37 +00:00
parent 0b03f81b55
commit a39c9ee8f7
13 changed files with 0 additions and 0 deletions

37
src/App.vue Normal file
View File

@@ -0,0 +1,37 @@
<template>
<view id="app">
<slot></slot>
</view>
</template>
<script>
export default {
onLaunch: function() {
console.log('App Launch')
// 检查登录状态
const token = uni.getStorageSync('token')
if (!token) {
uni.reLaunch({
url: '/pages/login/index'
})
}
},
onShow: function() {
console.log('App Show')
},
onHide: function() {
console.log('App Hide')
}
}
</script>
<style>
/* 全局样式 */
page {
background-color: #f5f5f5;
}
.container {
padding: 20rpx;
}
</style>