From 154dd6c40be86c9ef321090aa365660cf0c4bd10 Mon Sep 17 00:00:00 2001 From: shixiaohe Date: Sun, 24 Nov 2024 15:53:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=9B=AA=E8=8A=B1=E7=AE=97?= =?UTF-8?q?=E6=B3=95ID=E7=B2=BE=E5=BA=A6=E4=B8=A2=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/crm/product/detail/index.vue | 2 +- src/views/iot/device/detail/index.vue | 2 +- src/views/iot/product/detail/index.vue | 2 +- src/views/member/user/detail/index.vue | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/crm/product/detail/index.vue b/src/views/crm/product/detail/index.vue index ff9efd9e..65fdd0f9 100644 --- a/src/views/crm/product/detail/index.vue +++ b/src/views/crm/product/detail/index.vue @@ -24,7 +24,7 @@ defineOptions({ name: 'CrmProductDetail' }) const route = useRoute() const message = useMessage() -const id = Number(route.params.id) // 编号 +const id = route.params.id // 编号 const loading = ref(true) // 加载中 const product = ref({} as ProductApi.ProductVO) // 详情 diff --git a/src/views/iot/device/detail/index.vue b/src/views/iot/device/detail/index.vue index 2db16bbc..d56859bd 100644 --- a/src/views/iot/device/detail/index.vue +++ b/src/views/iot/device/detail/index.vue @@ -27,7 +27,7 @@ defineOptions({ name: 'IoTDeviceDetail' }) const route = useRoute() const message = useMessage() -const id = Number(route.params.id) // 编号 +const id = route.params.id // 编号 const loading = ref(true) // 加载中 const product = ref({} as ProductVO) // 产品详情 const device = ref({} as DeviceVO) // 设备详情 diff --git a/src/views/iot/product/detail/index.vue b/src/views/iot/product/detail/index.vue index ddc5e185..23b66dfd 100644 --- a/src/views/iot/product/detail/index.vue +++ b/src/views/iot/product/detail/index.vue @@ -33,7 +33,7 @@ const { currentRoute } = useRouter() const route = useRoute() const message = useMessage() -const id = Number(route.params.id) // 编号 +const id = route.params.id // 编号 const loading = ref(true) // 加载中 const product = ref({} as ProductVO) // 详情 const activeTab = ref('info') // 默认激活的标签页 diff --git a/src/views/member/user/detail/index.vue b/src/views/member/user/detail/index.vue index 202bd622..9818219a 100644 --- a/src/views/member/user/detail/index.vue +++ b/src/views/member/user/detail/index.vue @@ -113,7 +113,7 @@ const getUserData = async (id: number) => { const { currentRoute } = useRouter() // 路由 const { delView } = useTagsViewStore() // 视图操作 const route = useRoute() -const id = Number(route.params.id) +const id = route.params.id /* 用户钱包相关信息 */ const WALLET_INIT_DATA = { balance: 0,