直接再计算属性中得到想要的data属性:
比如获取不到 this.$route.path,可以使用以下方法:
computed:{ getCurrentPath: function (){ return '/project' + this.$route.path }
比如获取不到 this.$route.path,可以使用以下方法:
computed:{ getCurrentPath: function (){ return '/project' + this.$route.path }