mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-07-27 04:20:43 +08:00
chore: 清理旧文件并重构项目基础结构
- 删除大量废弃的旧代码、依赖和配置文件 - 新增基础项目配置、工具函数、页面模板和请求库 - 重构目录结构,统一项目规范 - 添加commitlint、husky等代码规范工具
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
<script lang="ts" setup>
|
||||
defineOptions({
|
||||
name: 'Home',
|
||||
})
|
||||
|
||||
definePage({
|
||||
type: 'home',
|
||||
style: {
|
||||
navigationStyle: 'custom',
|
||||
navigationBarTitleText: '首页',
|
||||
},
|
||||
})
|
||||
|
||||
function toRequestDemo() {
|
||||
uni.navigateTo({
|
||||
url: '/pages-demo/request-demo/request-demo',
|
||||
})
|
||||
}
|
||||
|
||||
onLoad(() => {
|
||||
console.log('测试 uni API 自动引入: onLoad')
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<view class="min-h-screen flex flex-col items-center justify-center gap-y-6 bg-page pt-safe">
|
||||
<image class="h-24 w-24 rounded-lg object-cover" src="/static/logo.png" />
|
||||
<view class="text-2xl text-blue-500 font-bold">
|
||||
Uni Halo v3.0.0
|
||||
</view>
|
||||
<view class="mt-4 flex flex-col items-center gap-y-2">
|
||||
<button @click="toRequestDemo">
|
||||
请求演示
|
||||
</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
Reference in New Issue
Block a user