From 55fb9617fdf794c86fc89476ecbe348b0a61e2cc Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Tue, 21 Oct 2025 19:04:18 +0800
Subject: [PATCH] feat: 动态渲染底部按钮

---
 src/pages/work/index.vue |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/pages/work/index.vue b/src/pages/work/index.vue
index 7d2532e..ba9ef11 100644
--- a/src/pages/work/index.vue
+++ b/src/pages/work/index.vue
@@ -9,6 +9,7 @@
 <script setup>
 	import {getWebViewUrl} from "@/utils/index.js";
 import WebViewPlus from "@/components/WebViewPlus.vue";
+  import {useTabAddButton} from "@/hooks/index.js";
 const sWebViewRef = ref(null);
 const viewUrl = getWebViewUrl('/work', {})
 function onPostMessage(data) {
@@ -25,6 +26,12 @@
 }
 	const isApp = ref(false)
 	onShow(() => {
+    uni.setTabBarItem({
+      index: 2, // Tab 的索引(从0开始)
+      text: '新建工单',
+      visible: true,
+      "pagePath": "subPackages/workDetail/addWork/index"
+    });
 	  isApp.value = true
 	});
 

--
Gitblit v1.9.3