二手车交易,缓存问题解决
This commit is contained in:
@@ -134,7 +134,7 @@ export default {
|
||||
this.imgSrcList=res.data.otherPhoto.split(',') || []
|
||||
}
|
||||
this.imgSrcList.unshift(res?.data?.vehicleAnglePhoto)
|
||||
console.log("this.imgSrcList",this.imgSrcList)
|
||||
// console.log("this.imgSrcList",this.imgSrcList)
|
||||
}
|
||||
},
|
||||
destroyed() {
|
||||
@@ -154,18 +154,11 @@ export default {
|
||||
getDuration(){
|
||||
// 页面卸载时记录离开时间并计算浏览时长
|
||||
const endTime = new Date();
|
||||
const duration = (endTime - this.startTime) / 1000; // 计算时长(秒)
|
||||
// console.log('页面卸载时间:', endTime);
|
||||
console.log('浏览时长:', duration, '秒');
|
||||
const duration = (endTime - this.startTime) / 1000; // 计算时长(秒)\
|
||||
this.saveRecord(duration);
|
||||
},
|
||||
async saveRecord(duration){
|
||||
try {
|
||||
let res= await saveRecord({type: this.recordType, carInfoId: this.id, duration})
|
||||
console.log("saveRecord",res)
|
||||
} catch (e) {
|
||||
console.log("e",e)
|
||||
}
|
||||
await saveRecord({type: this.recordType, carInfoId: this.id, duration})
|
||||
},
|
||||
handle(){
|
||||
this.show=true
|
||||
|
||||
Reference in New Issue
Block a user