mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-03-25 23:09:44 +08:00
fix: 清除网页缓存未生效
This commit is contained in:
@@ -213,6 +213,11 @@ void SettingsPage::on_pushButton_clearWebCache_clicked()
|
|||||||
QtConcurrent::run([=]()
|
QtConcurrent::run([=]()
|
||||||
{
|
{
|
||||||
QString dataLocal = QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation);
|
QString dataLocal = QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation);
|
||||||
|
qDebug() << dataLocal;
|
||||||
|
QDir dataDir(dataLocal);
|
||||||
|
dataDir.removeRecursively();
|
||||||
|
dataLocal = QStandardPaths::writableLocation(QStandardPaths::TempLocation);
|
||||||
|
qDebug() << dataLocal;
|
||||||
QDir cacheDir(dataLocal);
|
QDir cacheDir(dataLocal);
|
||||||
cacheDir.removeRecursively();
|
cacheDir.removeRecursively();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user