diff --git a/packages/gui/src/view/components/setup-ca.vue b/packages/gui/src/view/components/setup-ca.vue
index 19bcfa5..8a954c4 100644
--- a/packages/gui/src/view/components/setup-ca.vue
+++ b/packages/gui/src/view/components/setup-ca.vue
@@ -54,7 +54,7 @@ export default {
},
data () {
return {
- systemPlatform: 'win'
+ systemPlatform: ''
}
},
async created () {
diff --git a/packages/gui/src/view/mixins/plugin.js b/packages/gui/src/view/mixins/plugin.js
index 68f082f..d968948 100644
--- a/packages/gui/src/view/mixins/plugin.js
+++ b/packages/gui/src/view/mixins/plugin.js
@@ -29,9 +29,12 @@ export default {
},
async init () {
this.status = this.$status
- this.systemPlatform = await this.$api.info.getSystemPlatform()
+
this.config = await this.$api.config.reload()
- console.log('config', this.config)
+ this.systemPlatform = await this.$api.info.getSystemPlatform()
+ console.log('config', this.config, this.systemPlatform)
+ // eslint-disable-next-line no-debugger
+
if (this.ready) {
return this.ready(this.config)
}
@@ -84,6 +87,15 @@ export default {
return {}
}
return value
+ },
+ isWindows () {
+ return this.systemPlatform === 'windows'
+ },
+ isMac () {
+ return this.systemPlatform === 'mac'
+ },
+ isLinux () {
+ return this.systemPlatform === 'linux'
}
}
}
diff --git a/packages/gui/src/view/pages/plugin/pip.vue b/packages/gui/src/view/pages/plugin/pip.vue
index 8799c5e..59e6fd2 100644
--- a/packages/gui/src/view/pages/plugin/pip.vue
+++ b/packages/gui/src/view/pages/plugin/pip.vue
@@ -23,7 +23,7 @@