chore: 批量提交未提交的更改
This commit is contained in:
@@ -155,6 +155,12 @@ const handleLogin = async () => {
|
||||
min-height: 100vh;
|
||||
background: linear-gradient(180deg, #0F071A 0%, #1A0B2E 50%, #0F071A 100%);
|
||||
position: relative;
|
||||
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
}
|
||||
|
||||
/* 标题字体 - Cinzel (原型标准) */
|
||||
.title.font-serif {
|
||||
font-family: 'Cinzel', 'Inter', serif;
|
||||
}
|
||||
|
||||
.status-bar {
|
||||
|
||||
@@ -95,6 +95,7 @@ onMounted(() => {
|
||||
flex-direction: column;
|
||||
gap: 32rpx;
|
||||
min-height: 100%;
|
||||
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
}
|
||||
|
||||
.page-title {
|
||||
@@ -103,6 +104,7 @@ onMounted(() => {
|
||||
color: rgba(255, 255, 255, 0.9);
|
||||
margin-bottom: 8rpx;
|
||||
letter-spacing: 4rpx;
|
||||
font-family: 'Cinzel', 'Inter', serif;
|
||||
}
|
||||
|
||||
.empty-state {
|
||||
|
||||
@@ -111,9 +111,7 @@ const saveEvent = async () => {
|
||||
}, 1500)
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
store.fetchEvents()
|
||||
})
|
||||
// 数据已在主页面预加载,无需重复加载
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
@@ -314,11 +314,7 @@ const getScriptSummary = (script) => {
|
||||
return '暂无摘要'
|
||||
}
|
||||
|
||||
onMounted(async () => {
|
||||
await store.fetchUserProfile()
|
||||
await store.fetchEvents()
|
||||
await store.fetchScripts()
|
||||
})
|
||||
// 数据已在主页面预加载,无需重复加载
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
@@ -123,7 +123,7 @@ const initStars = () => {
|
||||
}
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
onMounted(async () => {
|
||||
// 使用新的推荐 API 替代已弃用的 getSystemInfoSync
|
||||
const windowInfo = uni.getWindowInfo()
|
||||
safeAreaTop.value = windowInfo.safeAreaInsets?.top || windowInfo.statusBarHeight || 20
|
||||
@@ -133,6 +133,13 @@ onMounted(() => {
|
||||
uni.$on('switchTab', switchTab)
|
||||
|
||||
initStars()
|
||||
|
||||
// 预加载所有 Tab 的数据,确保首次进入页面时数据已就绪
|
||||
await Promise.all([
|
||||
store.fetchEvents(),
|
||||
store.fetchScripts(),
|
||||
store.fetchPaths()
|
||||
])
|
||||
})
|
||||
|
||||
const userAvatar = computed(() => {
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
@echo off
|
||||
chcp 65001 >nul
|
||||
echo.
|
||||
echo =====================================
|
||||
echo Life OS - H5 开发模式启动
|
||||
echo =====================================
|
||||
echo.
|
||||
echo 正在启动 H5 开发服务器...
|
||||
echo.
|
||||
echo 访问地址:http://localhost:5173 (如被占用自动递增)
|
||||
echo.
|
||||
echo 按 Ctrl+C 可停止服务
|
||||
echo.
|
||||
echo =====================================
|
||||
echo.
|
||||
|
||||
cd /d "%~dp0\mini-program"
|
||||
|
||||
npm run dev:h5
|
||||
Reference in New Issue
Block a user