// 慢阻肺患者档案-健康档案 var template = '' $.ajax('../../../component/statistics/HealthRecord/index.html',{ data: {}, dataType: 'html', cache: false, timeout: 60000, async: false, error: function(res) { }, success: function(res) { template = res } }) Vue.component('health-record', { template: template, props: [], data() { return { } } });