定位时间设置
@@ -228,6 +236,14 @@ export default {
this.updateSettingEvent()
this.show.view = false
},
+ async clearCache () {
+ const win = remote.getCurrentWindow()
+ const ses = win.webContents.session
+ const size = await ses.getCacheSize() / 1024 / 1024
+ const mb = size.toFixed(2)
+ await ses.clearCache()
+ this.$message.success(`清除缓存成功, 共清理 ${mb} MB`)
+ },
updateSettingEvent () {
this.editPlayerPath = false
this.setting = this.d