diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json
new file mode 100644
index 0000000..a7c7b7c
--- /dev/null
+++ b/.hbuilderx/launch.json
@@ -0,0 +1,10 @@
+{
+ "version": "1.0",
+ "configurations": [
+ {
+ "customPlaygroundType": "device",
+ "playground": "standard",
+ "type": "uni-app:app-android"
+ }
+ ]
+}
diff --git a/package.json b/package.json
index 801df73..0fabf5b 100644
--- a/package.json
+++ b/package.json
@@ -7,6 +7,7 @@
"license": "MIT",
"scripts": {
"dev": "unh dev",
+ "app": "unh app",
"build": "unh build",
"about": "unh info",
"type-check": "vue-tsc --noEmit",
diff --git a/pages.config.ts b/pages.config.ts
index 6bdfd81..b0c3b65 100644
--- a/pages.config.ts
+++ b/pages.config.ts
@@ -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',
+ },
+ ],
+ },
})
diff --git a/src/pages/index.vue b/src/pages/index.vue
index 84a30e7..23f4fdf 100644
--- a/src/pages/index.vue
+++ b/src/pages/index.vue
@@ -5,7 +5,7 @@ definePage({
- Home
+ 首页
diff --git a/src/uni-pages.d.ts b/src/uni-pages.d.ts
index 85cb1b6..9022750 100644
--- a/src/uni-pages.d.ts
+++ b/src/uni-pages.d.ts
@@ -13,7 +13,7 @@ interface NavigateToOptions {
interface RedirectToOptions extends NavigateToOptions {}
interface SwitchTabOptions {
-
+ url: "/pages/index" | "/pages/hi" | "/pages/hi"
}
type ReLaunchOptions = NavigateToOptions | SwitchTabOptions;
diff --git a/unh.config.ts b/unh.config.ts
index b503604..beedb85 100644
--- a/unh.config.ts
+++ b/unh.config.ts
@@ -11,7 +11,8 @@ export default defineConfig({
// 平台别名
alias: {
'h5': ['w', 'h'],
- 'mp-weixin': 'wx',
+ // 安卓
+ 'app-android': 'app',
},
},
autoGenerate: {