shuishen
2025-12-17 fa807e10b5063d6b6cad55983534892fe2e73d32
feat:更换跳转方式
1 files modified
19 ■■■■ changed files
src/pages/inspectionTask/index.vue 19 ●●●● patch | view | raw | blame | history
src/pages/inspectionTask/index.vue
@@ -1,6 +1,8 @@
<!-- 巡检任务 -->
<template>
  <WebViewPlus :src="`${viewUrl}`" @webMessage="onPostMessage"/>
  <view>
    <WebViewPlus :src="`${viewUrl}`" @webMessage="onPostMessage"/>
  </view>
</template>
<script setup>
@@ -51,14 +53,13 @@
  // 清除数据
  const encodedData = encodeURIComponent(JSON.stringify({ device_sn: '' }))
  uni.setStorageSync('webview_params', encodedData);
  uni.setStorageSync('lastTab', 'task');
  uni.setTabBarItem({
    index: 2, // Tab 的索引(从0开始)
    visible: true,
    pagePath: "subPackages/taskDetail/addTask/index"
  });
  uni.setTabBarItem({
    index: 3, // Tab
    visible: false,
    index: 2,
    text: '',
    iconPath: 'static/images/tabbar/add.png',
    selectedIconPath: 'static/images/tabbar/add.png'
  });
});
@@ -69,4 +70,4 @@
</script>
<style scoped lang="scss">
</style>
</style>