diff --git a/src/components/OverviewState/index.vue b/src/components/OverviewState/index.vue index 4aaa58a..a99b910 100644 --- a/src/components/OverviewState/index.vue +++ b/src/components/OverviewState/index.vue @@ -1,28 +1,32 @@ @@ -35,10 +39,38 @@ export default { type: Array, required: true } + }, + data() { + return { + activePlateform: '' + } + }, + methods: { + plateformClick(index) { + let isPublic + if (this.activePlateform === index) { + this.activePlateform = '' + isPublic = null + } else { + this.activePlateform = index + isPublic = index === 1 + } + this.$emit('plateformClick', isPublic) + } } } diff --git a/vue.config.js b/vue.config.js index a52001c..c5a4e03 100644 --- a/vue.config.js +++ b/vue.config.js @@ -8,7 +8,7 @@ function resolve(dir) { return path.join(__dirname, dir) } const httpType = 'https://' -const proxyUrl = '23.33.3.22:60006' // 代理地址设置 +const proxyUrl = '10.10.33.54:60006' // 代理地址设置 // const proxyUrl = '10.20.51.92:7001' // 代理地址设置 const publicPath = process.env.NODE_ENV === 'production' ? '/scr-web/' : '/'