This commit is contained in:
朱子楚\zhuzi
2023-09-29 19:30:22 +08:00
parent c048336de1
commit cbe26ce4cd
10 changed files with 18 additions and 14 deletions

View File

@ -527,11 +527,12 @@ bool FluHttp::cacheExists(const QString& httpId){
}
QString FluHttp::getCacheFilePath(const QString& httpId){
QDir dir = _cacheDir;
if (!dir.exists(_cacheDir)){
dir.mkpath(_cacheDir);
QString path = FluTools::getInstance()->toLocalPath(QUrl(_cacheDir));
QDir dir = path;
if (!dir.exists(path)){
dir.mkpath(path);
}
auto filePath = _cacheDir+"/"+httpId;
auto filePath = path+"/"+httpId;
return filePath;
}

View File

@ -48,7 +48,7 @@ Item{
captureMode:control.captrueMode
saveFolder: {
if(typeof control.saveFolder === 'string'){
return control.saveFolder
return FluTools.toLocalPath(Qt.resolvedUrl(control.saveFolder))
}else{
return FluTools.toLocalPath(control.saveFolder)
}

View File

@ -48,7 +48,7 @@ Item{
captureMode:control.captrueMode
saveFolder: {
if(typeof control.saveFolder === 'string'){
return control.saveFolder
return FluTools.toLocalPath(Qt.resolvedUrl(control.saveFolder))
}else{
return FluTools.toLocalPath(control.saveFolder)
}