feat app_init
Some checks failed
Check / lint (18.x, macos-latest) (push) Has been cancelled
Check / lint (18.x, ubuntu-latest) (push) Has been cancelled
Check / lint (18.x, windows-latest) (push) Has been cancelled
Check / lint (20.x, macos-latest) (push) Has been cancelled
Check / lint (20.x, ubuntu-latest) (push) Has been cancelled
Check / lint (20.x, windows-latest) (push) Has been cancelled
Check / lint (22.x, macos-latest) (push) Has been cancelled
Check / lint (22.x, ubuntu-latest) (push) Has been cancelled
Check / lint (22.x, windows-latest) (push) Has been cancelled
Check / typecheck (18.x, macos-latest) (push) Has been cancelled
Check / typecheck (18.x, ubuntu-latest) (push) Has been cancelled
Check / typecheck (18.x, windows-latest) (push) Has been cancelled
Check / typecheck (20.x, macos-latest) (push) Has been cancelled
Check / typecheck (20.x, ubuntu-latest) (push) Has been cancelled
Check / typecheck (20.x, windows-latest) (push) Has been cancelled
Check / typecheck (22.x, macos-latest) (push) Has been cancelled
Check / typecheck (22.x, ubuntu-latest) (push) Has been cancelled
Check / typecheck (22.x, windows-latest) (push) Has been cancelled
Check / build (build app, 18.x, macos-latest) (push) Has been cancelled
Check / build (build app, 18.x, ubuntu-latest) (push) Has been cancelled
Check / build (build app, 18.x, windows-latest) (push) Has been cancelled
Check / build (build app, 20.x, macos-latest) (push) Has been cancelled
Check / build (build app, 20.x, ubuntu-latest) (push) Has been cancelled
Check / build (build app, 20.x, windows-latest) (push) Has been cancelled
Check / build (build app, 22.x, macos-latest) (push) Has been cancelled
Check / build (build app, 22.x, ubuntu-latest) (push) Has been cancelled
Check / build (build app, 22.x, windows-latest) (push) Has been cancelled
Check / build (build wx, 18.x, macos-latest) (push) Has been cancelled
Check / build (build wx, 18.x, ubuntu-latest) (push) Has been cancelled
Check / build (build wx, 18.x, windows-latest) (push) Has been cancelled
Check / build (build wx, 20.x, macos-latest) (push) Has been cancelled
Check / build (build wx, 20.x, ubuntu-latest) (push) Has been cancelled
Check / build (build wx, 20.x, windows-latest) (push) Has been cancelled
Check / build (build wx, 22.x, macos-latest) (push) Has been cancelled
Check / build (build wx, 22.x, ubuntu-latest) (push) Has been cancelled
Check / build (build wx, 22.x, windows-latest) (push) Has been cancelled
Check / build (build, 18.x, macos-latest) (push) Has been cancelled
Check / build (build, 18.x, ubuntu-latest) (push) Has been cancelled
Check / build (build, 18.x, windows-latest) (push) Has been cancelled
Check / build (build, 20.x, macos-latest) (push) Has been cancelled
Check / build (build, 20.x, ubuntu-latest) (push) Has been cancelled
Check / build (build, 20.x, windows-latest) (push) Has been cancelled
Check / build (build, 22.x, macos-latest) (push) Has been cancelled
Check / build (build, 22.x, ubuntu-latest) (push) Has been cancelled
Check / build (build, 22.x, windows-latest) (push) Has been cancelled

This commit is contained in:
Ironsp
2026-08-21 16:04:56 +08:00
parent f0ccddb59d
commit 7409768d9c
6 changed files with 41 additions and 9 deletions

10
.hbuilderx/launch.json Normal file
View File

@@ -0,0 +1,10 @@
{
"version": "1.0",
"configurations": [
{
"customPlaygroundType": "device",
"playground": "standard",
"type": "uni-app:app-android"
}
]
}

View File

@@ -7,6 +7,7 @@
"license": "MIT",
"scripts": {
"dev": "unh dev",
"app": "unh app",
"build": "unh build",
"about": "unh info",
"type-check": "vue-tsc --noEmit",

View File

@@ -12,10 +12,30 @@ export default defineUniPages({
navigationBarTitleText: 'Vitesse-Uni',
navigationStyle: 'custom',
},
// tabBar: {
// backgroundColor: "@tabBgColor",
// borderStyle: "@tabBorderStyle",
// color: "@tabFontColor",
// selectedColor: "@tabSelectedColor",
// },
tabBar: {
backgroundColor: '@tabBgColor',
borderStyle: '@tabBorderStyle',
color: '@tabFontColor',
selectedColor: '@tabSelectedColor',
list: [
{
pagePath: 'pages/index',
text: '首页',
iconPath: 'static/vite.png',
selectedIconPath: 'static/vite.png',
},
{
pagePath: 'pages/hi',
text: '我的',
iconPath: 'static/vite.png',
selectedIconPath: 'static/vite.png',
},
{
pagePath: 'pages/hi',
text: 'about',
iconPath: 'static/vite.png',
selectedIconPath: 'static/vite.png',
},
],
},
})

View File

@@ -5,7 +5,7 @@ definePage({
</script>
<template>
<h1>Home</h1>
<h1>首页</h1>
</template>
<style></style>

2
src/uni-pages.d.ts vendored
View File

@@ -13,7 +13,7 @@ interface NavigateToOptions {
interface RedirectToOptions extends NavigateToOptions {}
interface SwitchTabOptions {
url: "/pages/index" | "/pages/hi" | "/pages/hi"
}
type ReLaunchOptions = NavigateToOptions | SwitchTabOptions;

View File

@@ -11,7 +11,8 @@ export default defineConfig({
// 平台别名
alias: {
'h5': ['w', 'h'],
'mp-weixin': 'wx',
// 安卓
'app-android': 'app',
},
},
autoGenerate: {