Skip to content

Commit

Permalink
设置页面,也添加日志按钮。
Browse files Browse the repository at this point in the history
  • Loading branch information
wangliang181230 committed Aug 14, 2024
1 parent 986fead commit b29b803
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
5 changes: 5 additions & 0 deletions packages/gui/src/view/pages/setting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<a-checkbox v-model="config.app.autoStart.enabled" @change="onAutoStartChange">
本应用开机自启
</a-checkbox>
<a-button class="md-mr-10" icon="profile" @click="openLog()">日志</a-button>
<div class="form-help">
windows下建议开启开机自启。<a @click="openExternal('https://github.com/docmirror/dev-sidecar/blob/master/doc/recover.md')">更多说明参考</a>
</div>
Expand Down Expand Up @@ -143,6 +144,10 @@ export default {
ready (config) {
this.themeBackup = config.app.theme
},
async openLog () {
const dir = await this.$api.info.getConfigDir()
this.$api.ipc.openPath(dir + '/logs/')
},
async applyAfter () {
// 判断是否切换了主题
if (this.config.app.theme !== this.themeBackup) {
Expand Down
9 changes: 5 additions & 4 deletions packages/mitmproxy/src/lib/dns/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ class IpCache extends DynamicChoice {
}

/**
* 获取到新的ipList
* @param ipList
* 设置新的ipList
*
* @param newBackupList
*/
setBackupList (ipList) {
super.setBackupList(ipList)
setBackupList (newBackupList) {
super.setBackupList(newBackupList)
this.lookupCount++
}
}
Expand Down

0 comments on commit b29b803

Please sign in to comment.