BUG修改
This commit is contained in:
@@ -19,6 +19,19 @@ const targetOptions = ref({});
|
||||
const canSwipe = computed(() => typeof props.onRemove === "function");
|
||||
|
||||
const toDetailPage = () => {
|
||||
const config = uni.getStorageSync("point-book-config");
|
||||
const bowType = config.bowOption.find(
|
||||
(item) => item.id === props.data.bowType
|
||||
);
|
||||
const bowtargetType = config.targetOption.find(
|
||||
(item) => item.id === props.data.targetType
|
||||
);
|
||||
uni.setStorageSync("point-book", {
|
||||
bowType,
|
||||
bowtargetType,
|
||||
distance: props.data.distance,
|
||||
amountGroup: props.data.groups,
|
||||
});
|
||||
uni.navigateTo({
|
||||
url: `/pages/point-book-detail?id=${props.data.id}`,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user