diff --git a/src/views/charts2/Panel.vue b/src/views/charts2/Panel.vue index e10a87c6..d4d2f6fe 100644 --- a/src/views/charts2/Panel.vue +++ b/src/views/charts2/Panel.vue @@ -96,18 +96,18 @@ export default { } }, computed: { - npmThirdLevelMenuScore () { - return this.$store.getters.getNpmThirdLevelMenuScore - } + // npmThirdLevelMenuScore () { + // return this.$store.getters.getNpmThirdLevelMenuScore + // } }, watch: { - npmThirdLevelMenuScore: { - deep: true, - immediate: true, - handler (n) { - this.score = n - } - } + // npmThirdLevelMenuScore: { + // deep: true, + // immediate: true, + // handler (n) { + // this.score = n + // } + // } }, async mounted () { // this.panelName = this.$store.getters.getPanelName diff --git a/src/views/charts2/charts/npm/localComponents/SingleValue.vue b/src/views/charts2/charts/npm/localComponents/SingleValue.vue index 6731252c..275c4b7a 100644 --- a/src/views/charts2/charts/npm/localComponents/SingleValue.vue +++ b/src/views/charts2/charts/npm/localComponents/SingleValue.vue @@ -71,6 +71,14 @@ export default { newNpmNetworkData: [] // 整合处理传过来的数据列表 } }, + watch: { + npmNetworkData: { + deep: true, + handler () { + this.initData() + } + } + }, mounted () { this.initData() },