我想使用if语句显示2个数据

时间:2018-09-24 11:31:33

标签: laravel vue.js

我有2页,其中有2个单独的数据。因此,使用if条件时,我想在给出一个URL时将它们显示在一页上。

if(this.$route.name  == "Locations"){
    this.currentComponent = "zone-index";
    this.currentComponent = "common-index";
} 

0 个答案:

没有答案
相关问题