diff --git a/src/assets/welcome_default.png b/src/assets/welcome_default.png new file mode 100644 index 000000000..fe207455e Binary files /dev/null and b/src/assets/welcome_default.png differ diff --git a/src/components/renderer/form-analytics-chart.vue b/src/components/renderer/form-analytics-chart.vue index 929432f36..dc548f329 100644 --- a/src/components/renderer/form-analytics-chart.vue +++ b/src/components/renderer/form-analytics-chart.vue @@ -10,7 +10,8 @@
- + +
@@ -27,7 +28,8 @@ export default { graphic: [], customStyle: { "border-radius": "8px" - } + }, + showChart: false, }; }, watch: { @@ -41,10 +43,14 @@ export default { if (this.listChartOption && this.listChartOption.name) { this.graphic = this.listChartOption; } + this.verifyChart(); }, methods: { openExternalLink() { window.open("/package-analytics-reporting", "_blank"); + }, + verifyChart() { + this.showChart = this.graphic.name === "PM Analytics Chart" || this.graphic.name === "PM Analytics Dashboard" || this.graphic.length === 0; } } };