Skip to content

Commit 6dc5f5d

Browse files
YunaiVgitee-org
authored andcommitted
!597 fix-雪花算法ID精度丢失
Merge pull request !597 from shixiaohe/master
2 parents 690243d + 154dd6c commit 6dc5f5d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/views/crm/product/detail/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ defineOptions({ name: 'CrmProductDetail' })
2424
2525
const route = useRoute()
2626
const message = useMessage()
27-
const id = Number(route.params.id) // 编号
27+
const id = route.params.id // 编号
2828
const loading = ref(true) // 加载中
2929
const product = ref<ProductApi.ProductVO>({} as ProductApi.ProductVO) // 详情
3030

src/views/iot/device/detail/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ defineOptions({ name: 'IoTDeviceDetail' })
2727
2828
const route = useRoute()
2929
const message = useMessage()
30-
const id = Number(route.params.id) // 编号
30+
const id = route.params.id // 编号
3131
const loading = ref(true) // 加载中
3232
const product = ref<ProductVO>({} as ProductVO) // 产品详情
3333
const device = ref<DeviceVO>({} as DeviceVO) // 设备详情

src/views/iot/product/detail/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const { currentRoute } = useRouter()
3333
3434
const route = useRoute()
3535
const message = useMessage()
36-
const id = Number(route.params.id) // 编号
36+
const id = route.params.id // 编号
3737
const loading = ref(true) // 加载中
3838
const product = ref<ProductVO>({} as ProductVO) // 详情
3939
const activeTab = ref('info') // 默认激活的标签页

src/views/member/user/detail/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ const getUserData = async (id: number) => {
113113
const { currentRoute } = useRouter() // 路由
114114
const { delView } = useTagsViewStore() // 视图操作
115115
const route = useRoute()
116-
const id = Number(route.params.id)
116+
const id = route.params.id
117117
/* 用户钱包相关信息 */
118118
const WALLET_INIT_DATA = {
119119
balance: 0,

0 commit comments

Comments
 (0)