You've already forked dev-sidecar
mirror of
https://github.com/docmirror/dev-sidecar.git
synced 2025-11-26 14:10:40 +08:00
设置页面,也添加日志按钮。
This commit is contained in:
@@ -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>
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user