@@ -246,15 +248,16 @@ export default {
btns.server = this.createSwitchBtn('server', '代理服务', this.$api.server, status)
btns.proxy = this.createSwitchBtn('proxy', '系统代理', this.$api.proxy, status)
lodash.forEach(status.plugin, (item, key) => {
- btns[key] = this.createSwitchBtn(key, this.config.plugin[key].name, this.$api.plugin[key], status.plugin)
+ btns[key] = this.createSwitchBtn(key, this.config.plugin[key].name, this.$api.plugin[key], status.plugin, this.config.plugin[key].tip)
})
return btns
},
- createSwitchBtn (key, label, apiTarget, statusParent) {
+ createSwitchBtn (key, label, apiTarget, statusParent, tip) {
return {
loading: false,
- key: key,
- label: label,
+ key,
+ label,
+ tip,
status: () => {
return statusParent[key].enabled
},
diff --git a/packages/gui/yarn.lock b/packages/gui/yarn.lock
index bea652d..c695155 100644
--- a/packages/gui/yarn.lock
+++ b/packages/gui/yarn.lock
@@ -6237,8 +6237,8 @@ iconv-lite@^0.5.0:
iconv-lite@^0.6.2:
version "0.6.2"
- resolved "https://registry.npm.taobao.org/iconv-lite/download/iconv-lite-0.6.2.tgz"
- integrity sha1-zhPRh1sMOmdL1qBLf3awGxtt7QE=
+ resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.6.2.tgz#ce13d1875b0c3a674bd6a04b7f76b01b1b6ded01"
+ integrity sha512-2y91h5OpQlolefMPmUlivelittSWy0rP+oYVpn6A7GwVHNE8AWzoYOBNmlwks3LobaJxgHCYZAnyNo2GgpNRNQ==
dependencies:
safer-buffer ">= 2.1.2 < 3.0.0"