Compare commits
No commits in common. "4daaff5cf8e7295c6ad0310fca148d76769a0189" and "e6dbf5d7f8678b967e4a9e106c4e11a97fb14479" have entirely different histories.
4daaff5cf8
...
e6dbf5d7f8
@ -16,6 +16,7 @@ export default class GetDistance {
|
||||
constructor(context) {
|
||||
const fileUtil = new FileUtil(context)
|
||||
this.fileUtil = fileUtil;
|
||||
// this.uploadData()
|
||||
}
|
||||
|
||||
// 设置文件夹
|
||||
@ -49,11 +50,10 @@ export default class GetDistance {
|
||||
contentArr[contentArr.length - 1] = `程序启动时间:${timeStr} 累计行驶距离:${(this.totalDistance).toFixed(2)}m 累计运行时常:${Math.ceil(this.totalTime/60)}min`+ '\n'
|
||||
console.info('surenjun',contentArr.join('\n'))
|
||||
console.log('folderPath',folderPath,date)
|
||||
this.uploadData()
|
||||
|
||||
// await fileUtil.addFile(
|
||||
// `${folderPath}/${date}.txt`,contentArr.join('\n')
|
||||
// );
|
||||
await fileUtil.addFile(
|
||||
`${folderPath}/${date}.txt`,contentArr.join('\n')
|
||||
);
|
||||
}
|
||||
|
||||
//上传行驶里程数据
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user