Skip to content

Commit

Permalink
复制pac地址按钮不再隐藏,首次开启扩展模块时默认启动全局代理
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeyWie committed Sep 17, 2018
1 parent c3d671d commit c41d93b
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions front/src/views/Extension.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
<p>{{ $t('extension.proxyTip') }}</p>
</div>
</Tooltip>
<Button v-show="!proxySwitch"
type="primary"
<Button type="primary"
@click="copyPac">{{ $t('extension.copyPac') }}</Button>
</div>
<Table :columns="columns"
Expand Down Expand Up @@ -178,6 +177,7 @@ export default {
this.certStatus = status
if (status) {
// Install Success
changeProxyMode(1).then(() => (this.proxySwitch = true))
this.loadExtensions()
}
})
Expand All @@ -199,13 +199,7 @@ export default {
let extFileServer = extFileServers[index]
let url = new URL(extFileServer)
this.spinTip =
this.$t('extension.downloadingTip') +
(index + 1) +
'/' +
extFileServers.length +
'):' +
url.host +
']'
this.$t('extension.downloadingTip') + (index + 1) + '/' + extFileServers.length + '):' + url.host + ']'
const params = {
server: extFileServer,
path: row.path,
Expand All @@ -225,11 +219,7 @@ export default {
})
// Update info to server
this.$noSpinHttp.get(
this.$config.adminServer +
'extension/down?ext_id=' +
row.id +
'&version=' +
row.newVersion
this.$config.adminServer + 'extension/down?ext_id=' + row.id + '&version=' + row.newVersion
)
})
.catch(error => {
Expand Down

0 comments on commit c41d93b

Please sign in to comment.