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 });