完成consumer端同步
This commit is contained in:
@@ -135,7 +135,7 @@ const shareRecord = ref<ShareRecordType>({
|
||||
|
||||
const buyers = ref<BuyerType[]>([])
|
||||
const buyersLoading = ref<boolean>(false)
|
||||
const defaultImage: string = '/static/images/default-product.png'
|
||||
const defaultImage: string = '/static/images/default.png'
|
||||
|
||||
const loadShareDetail = async (): Promise<void> => {
|
||||
if (shareId.value === '') return
|
||||
@@ -255,9 +255,10 @@ const formatTime = (timeStr: string | null): string => {
|
||||
|
||||
onLoad((options) => {
|
||||
if (options != null) {
|
||||
const idVal = options['id']
|
||||
if (idVal != null) {
|
||||
shareId.value = idVal as string
|
||||
const optionsObj = options as UTSJSONObject
|
||||
const idVal = optionsObj.getString('id') ?? ''
|
||||
if (idVal != '') {
|
||||
shareId.value = idVal
|
||||
loadShareDetail()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user