首页 > 技术文章 > 标题的内容响应式设计

jack-liu6 2018-05-31 15:02 原文

      title () {
        // this.$route.path 代表了当前的路径,形成header标题的自适应
        switch (this.$route.path.split('/')[1]) {
            case '':
              return "Qu约"
            case 'home':
              return "Qu约"
            case 'sport':
              return "约跑"
            case 'travel':
              return "约行"
            case 'user':
              return "我的"
        }
      },

 

推荐阅读