Skip to content
This repository was archived by the owner on Nov 21, 2019. It is now read-only.

Commit 5325ff8

Browse files
author
icymind
committed
delete refreshInfo button's popup
1 parent 590a1f7 commit 5325ff8

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

html/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,12 @@ <h4 class="ui header teal">系统信息</h4>
9696
<div class="ui list">
9797
<div class="item">
9898
<div class="ui label">
99-
网关: <span class="detail">{{ status.currentGWIP }}</span>
99+
当前网关: <span class="detail">{{ status.currentGWIP }}</span>
100100
</div>
101101
</div>
102102
<div class="item">
103103
<div class="ui label">
104-
DNS: <span id="dns" class="detail white">{{ status.currentDnsIP }}</span>
104+
当前 DNS: <span id="dns" class="detail white">{{ status.currentDnsIP }}</span>
105105
</div>
106106
</div>
107107
</div>
@@ -221,7 +221,7 @@ <h4 class="ui header teal">代理状态</h4>
221221
</div>
222222
</div>
223223
</div>
224-
<div class="ui labeled icon teal button right floated" data-content="重新收集状态信息" data-position="bottom center" v-on:click="refreshInfos">
224+
<div class="ui labeled icon teal button right floated" v-on:click="refreshInfos">
225225
<i class="inline ui refresh icon"></i>
226226
刷新
227227
</div>

js/vrouter-local.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1620,10 +1620,7 @@ echo ""`
16201620

16211621
saveCfg2File () {
16221622
const cfgPath = path.join(this.config.host.configDir, 'config.json')
1623-
console.log(this.config.host.configDir)
1624-
console.log(cfgPath)
1625-
console.log(this.config)
1626-
// return fs.writeJson(cfgPath, this.config, {spaces: 2})
1623+
return fs.writeJson(cfgPath, this.config, {spaces: 2})
16271624
}
16281625
async upgradeCfgV1 (newCfg) {
16291626
// const template = path.join(__dirname, '..', 'config', 'config.json')
@@ -1724,6 +1721,7 @@ echo ""`
17241721
if (profiles.length !== 0) {
17251722
newCfg.profiles.profiles = profiles
17261723
}
1724+
newCfg.host.configDir = this.config.host.configDir
17271725
this.config = newCfg
17281726
}
17291727
}

0 commit comments

Comments
 (0)