cloudroam
10 天以前 05316275ee6f1623cc022a3cb4967a440c105a6b
components/footer/customer-footer.vue
@@ -19,6 +19,8 @@
<script setup lang="ts">
import { ref, computed } from 'vue'
import { useNavigator } from '@/composables/useNavigator'
const { navigateTo, reLaunchTo} = useNavigator()
interface TabItem {
  text: string
@@ -33,9 +35,9 @@
const tabBar = ref<TabItem[]>([
  { text: '首页', pagePath: '/pages/home/home' },
  { text: '影视地图', pagePath: '/sub-pages/film-map/index' },
  { text: '我的种草', pagePath: '/sub-pages/customer/shopping/shopping' },
  { text: '社区', pagePath: '/sub-pages/community/index' },
  // { text: '影视地图', pagePath: '/sub-pages/film-map/index' },
  // { text: '我的种草', pagePath: '/sub-pages/customer/shopping/shopping' },
  { text: '草原', pagePath: '/sub-pages/community/index' },
  { text: '我的', pagePath: '/sub-pages/mine/index' },
])
@@ -57,9 +59,12 @@
})
function go(index: number, item: TabItem) {
  uni.reLaunch({
    url: item.pagePath,
  })
  // uni.reLaunch({
  //   url: item.pagePath,
  // })
  reLaunchTo(item.pagePath)
}
</script>