Vue.prototype.handler = function(val){typeof val === 'function' ? val.call(this) : (val+'').startsWith('/')? uni.navigateTo({url:val}) : ''}