Browse Source

fix Style

pull/391/head
王良 1 week ago
parent
commit
3d11d8c660
  1. 2
      packages/gui/src/view/App.vue
  2. 2
      packages/gui/src/view/pages/plugin/pip.vue
  3. 6
      packages/gui/src/view/pages/setting.vue
  4. 2
      packages/mitmproxy/src/lib/dns/ipaddress.js

2
packages/gui/src/view/App.vue

@ -20,7 +20,7 @@ export default {
}, },
theme () { theme () {
return this.config.app.theme return this.config.app.theme
} },
}, },
created () { created () {
this.menus = createMenus(this) this.menus = createMenus(this)

2
packages/gui/src/view/pages/plugin/pip.vue

@ -2,7 +2,7 @@
import Plugin from '../../mixins/plugin' import Plugin from '../../mixins/plugin'
export default { export default {
name: 'pip', name: 'Pip',
mixins: [Plugin], mixins: [Plugin],
data () { data () {
return { return {

6
packages/gui/src/view/pages/setting.vue

@ -258,7 +258,7 @@ export default {
width: 610, width: 610,
content: (h) => ( content: (h) => (
<div class="restore-factory-settings"> <div class="restore-factory-settings">
<hr> <hr/>
<p> <p>
<h3>操作警告</h3> <h3>操作警告</h3>
<div> <div>
@ -269,11 +269,11 @@ export default {
请谨慎操作 请谨慎操作
</div> </div>
</p> </p>
<hr> <hr/>
<p> <p>
<h3>找回个性化配置的方法</h3> <h3>找回个性化配置的方法</h3>
<div> <div>
1. 找到备份文件路径<span>~/.dev-sidecar/config.json..bak.json</span><br> 1. 找到备份文件路径<span>~/.dev-sidecar/config.json..bak.json</span><br/>
2. 将该备份文件重命名为<span>config.json</span>再重启软件即可恢复个性化配置 2. 将该备份文件重命名为<span>config.json</span>再重启软件即可恢复个性化配置
</div> </div>
</p> </p>

2
packages/mitmproxy/src/lib/dns/ipaddress.js

@ -9,7 +9,7 @@ module.exports = class DNSOverIpAddress extends BaseDNS {
// const res = fs.readFileSync(path.resolve(__dirname, './data.txt')).toString() // const res = fs.readFileSync(path.resolve(__dirname, './data.txt')).toString()
const res = await axios.get(url) const res = await axios.get(url)
if (res.status !== 200 && res.status !== 201) { if (res.status !== 200 && res.status !== 201) {
log.info(`[dns] get ${hostname} ipaddress: error:${res}`) log.error(`[dns] get ${hostname} ipaddress: error: ${res}`)
return return
} }
const ret = res.data const ret = res.data

Loading…
Cancel
Save