完成consumer端同步
This commit is contained in:
@@ -199,7 +199,7 @@ const pageSize = 10
|
||||
const filterRating = ref<number>(0)
|
||||
const hasImageFilter = ref<boolean>(false)
|
||||
|
||||
const defaultAvatar: string = '/static/images/default-avatar.png'
|
||||
const defaultAvatar: string = '/static/images/default.png'
|
||||
|
||||
const getRatingCount = (rating: number): number => {
|
||||
return stats.value.rating_distribution.get(rating.toString()) ?? 0
|
||||
@@ -375,9 +375,10 @@ const formatTime = (timeStr: string | null): string => {
|
||||
|
||||
onLoad((options) => {
|
||||
if (options != null) {
|
||||
const idVal = options['product_id']
|
||||
if (idVal != null) {
|
||||
productId.value = idVal as string
|
||||
const optionsObj = options as UTSJSONObject
|
||||
const idVal = optionsObj.getString('product_id') ?? ''
|
||||
if (idVal != '') {
|
||||
productId.value = idVal
|
||||
loadStats()
|
||||
loadReviews(1)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user