日志按钮调整。
parent
3b604d0fbb
commit
b6538f4fea
|
@ -138,5 +138,9 @@ export default {
|
||||||
isLinux () {
|
isLinux () {
|
||||||
return this.systemPlatform === 'linux'
|
return this.systemPlatform === 'linux'
|
||||||
},
|
},
|
||||||
|
async openLog () {
|
||||||
|
const dir = await this.$api.info.getConfigDir()
|
||||||
|
this.$api.ipc.openPath(`${dir}/logs/`)
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,7 +26,8 @@ export default {
|
||||||
<template slot="header">
|
<template slot="header">
|
||||||
帮助中心
|
帮助中心
|
||||||
<span>
|
<span>
|
||||||
<a-button @click="openExternal('https://github.com/docmirror/dev-sidecar/issues/new/choose')">反馈问题</a-button>
|
<a-button class="md-mr-10" @click="openExternal('https://github.com/docmirror/dev-sidecar/issues/new/choose')">反馈问题</a-button>
|
||||||
|
<a-button class="md-mr-10" icon="profile" @click="openLog()">查看日志</a-button>
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -122,10 +122,6 @@ export default {
|
||||||
addWhiteList () {
|
addWhiteList () {
|
||||||
this.whiteList.unshift({ key: '', value: true })
|
this.whiteList.unshift({ key: '', value: true })
|
||||||
},
|
},
|
||||||
async openLog () {
|
|
||||||
const dir = await this.$api.info.getConfigDir()
|
|
||||||
this.$api.ipc.openPath(`${dir}/logs/`)
|
|
||||||
},
|
|
||||||
getSpeedTestConfig () {
|
getSpeedTestConfig () {
|
||||||
return this.config.server.dns.speedTest
|
return this.config.server.dns.speedTest
|
||||||
},
|
},
|
||||||
|
@ -202,9 +198,6 @@ export default {
|
||||||
<a-tag v-else color="red">
|
<a-tag v-else color="red">
|
||||||
当前未启动
|
当前未启动
|
||||||
</a-tag>
|
</a-tag>
|
||||||
<a-button class="md-mr-10" icon="profile" @click="openLog()">
|
|
||||||
日志
|
|
||||||
</a-button>
|
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item label="绑定IP" :label-col="labelCol" :wrapper-col="wrapperCol">
|
<a-form-item label="绑定IP" :label-col="labelCol" :wrapper-col="wrapperCol">
|
||||||
<a-input v-model="config.server.host" />
|
<a-input v-model="config.server.host" />
|
||||||
|
@ -273,7 +266,7 @@ export default {
|
||||||
/>
|
/>
|
||||||
</a-tab-pane>
|
</a-tab-pane>
|
||||||
<a-tab-pane key="3" tab="超时时间设置">
|
<a-tab-pane key="3" tab="超时时间设置">
|
||||||
<div style="height:100%;display:flex;flex-direction:column;padding-right:10px">
|
<div style="height:100%;display:flex;flex-direction:column">
|
||||||
<a-form-item label="默认超时时间" :label-col="labelCol" :wrapper-col="wrapperCol">
|
<a-form-item label="默认超时时间" :label-col="labelCol" :wrapper-col="wrapperCol">
|
||||||
请求:<a-input-number v-model="config.server.setting.defaultTimeout" :step="1000" :min="1000" /> ms,对应<code>timeout</code>配置<br>
|
请求:<a-input-number v-model="config.server.setting.defaultTimeout" :step="1000" :min="1000" /> ms,对应<code>timeout</code>配置<br>
|
||||||
连接:<a-input-number v-model="config.server.setting.defaultKeepAliveTimeout" :step="1000" :min="1000" /> ms,对应<code>keepAliveTimeout</code>配置
|
连接:<a-input-number v-model="config.server.setting.defaultKeepAliveTimeout" :step="1000" :min="1000" /> ms,对应<code>keepAliveTimeout</code>配置
|
||||||
|
|
|
@ -20,10 +20,6 @@ export default {
|
||||||
this.urlBackup = config.app.remoteConfig.url
|
this.urlBackup = config.app.remoteConfig.url
|
||||||
this.personalUrlBackup = config.app.remoteConfig.personalUrl
|
this.personalUrlBackup = config.app.remoteConfig.personalUrl
|
||||||
},
|
},
|
||||||
async openLog () {
|
|
||||||
const dir = await this.$api.info.getConfigDir()
|
|
||||||
this.$api.ipc.openPath(`${dir}/logs/`)
|
|
||||||
},
|
|
||||||
getEventKey (event) {
|
getEventKey (event) {
|
||||||
// 忽略以下键
|
// 忽略以下键
|
||||||
switch (event.key) {
|
switch (event.key) {
|
||||||
|
@ -315,6 +311,9 @@ export default {
|
||||||
<ds-container>
|
<ds-container>
|
||||||
<template slot="header">
|
<template slot="header">
|
||||||
设置
|
设置
|
||||||
|
<span>
|
||||||
|
<a-button class="md-mr-10" icon="profile" @click="openLog()">查看日志</a-button>
|
||||||
|
</span>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<div v-if="config">
|
<div v-if="config">
|
||||||
|
@ -322,9 +321,6 @@ export default {
|
||||||
<a-checkbox v-model="config.app.autoStart.enabled" @change="onAutoStartChange">
|
<a-checkbox v-model="config.app.autoStart.enabled" @change="onAutoStartChange">
|
||||||
本应用开机自启
|
本应用开机自启
|
||||||
</a-checkbox>
|
</a-checkbox>
|
||||||
<a-button class="md-mr-10" icon="profile" @click="openLog()">
|
|
||||||
日志
|
|
||||||
</a-button>
|
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item v-if="systemPlatform === 'mac'" label="隐藏Dock图标" :label-col="labelCol" :wrapper-col="wrapperCol">
|
<a-form-item v-if="systemPlatform === 'mac'" label="隐藏Dock图标" :label-col="labelCol" :wrapper-col="wrapperCol">
|
||||||
<a-checkbox v-model="config.app.dock.hideWhenWinClose">
|
<a-checkbox v-model="config.app.dock.hideWhenWinClose">
|
||||||
|
@ -410,7 +406,7 @@ export default {
|
||||||
部分快捷键已被占用:F5=刷新页面,F12=开发者工具(DevTools)
|
部分快捷键已被占用:F5=刷新页面,F12=开发者工具(DevTools)
|
||||||
</div>
|
</div>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item label="启动时打开窗口" :label-col="labelCol" :wrapper-col="wrapperCol">
|
<a-form-item label="启动时窗口状态" :label-col="labelCol" :wrapper-col="wrapperCol">
|
||||||
<a-radio-group v-model="config.app.startShowWindow" default-value="true" button-style="solid">
|
<a-radio-group v-model="config.app.startShowWindow" default-value="true" button-style="solid">
|
||||||
<a-radio-button :value="true">
|
<a-radio-button :value="true">
|
||||||
打开窗口
|
打开窗口
|
||||||
|
|
Loading…
Reference in New Issue