|
@@ -92,6 +92,11 @@ export default {
|
|
|
watch: {
|
|
watch: {
|
|
|
$route: {
|
|
$route: {
|
|
|
async handler() {
|
|
async handler() {
|
|
|
|
|
+ // 当从schedule页点击Devcloud Logo直接返回主页时,
|
|
|
|
|
+ // 该handler也会触发,因此进行判断,不进入下面逻辑
|
|
|
|
|
+ if (this.$route.name === 'Home') {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
await this.getTreeData();
|
|
await this.getTreeData();
|
|
|
this.drawChart();
|
|
this.drawChart();
|
|
|
},
|
|
},
|