当我使用filterBy时,我的Vue.js应用程序停止工作

时间:2017-06-14 12:02:39

标签: vue.js

当我使用filterBy时,我的应用程序停止工作,并且页面中没有任何内容显示DOM中缺少VM实例div。可能是什么原因?

<div  v-else v-for="events in profDetails.events | filterBy events.type">

以下是JSON格式:

{
    "usrId": "1",
    "events": [{
        "sdate": "02/13/2017",
        "author": "suthota1@email.com",
        "imgsmall": "images/backgroundhead.svg",
        "usrId": 1,
        "title": "BigFix Detect (Endpoint Detection & Response) Marketing Announce",
        "type": "announcements",
        "edate": "02/13/2017",
        "tags": "",
        "bu": ["Security"],
        "scope": "CISOs, SOC Analysts",
        "contact": "",
        "createTS": "June 01, 2017 @ 04:53 PM",
        "id": 1,
        "region": "North America",
        "imglarge": "images/backgroundhead.svg",
        "kma": "New landing page, demo video, webinar, comprehensive digital campaign, try/buy offer, immersive demos at RSA, analyst quick take report",
        "status": "Published",
        "desc": "IBM launches new rapid threat detection and remediation platform. The top tactic employed by attackers is to avoid being detected in the first place. This has spawned a flood of endpoint detection and response (EDR) tools that have primarily focused on detection of endpoint threats. Unlike other vendors, BigFix sees, understands and acts on all threats on the endpoint through a single platform, detecting malicious behavior and delivering targeted remediation on impacted endpoints enterprise wide in minutes."
    }, {
        "sdate": "07/26/2017",
        "author": "suthota1@email.com",
        "imgsmall": "images/backgroundhead.svg",
        "usrId": 1,
        "title": "IBM X-Force Red Portal 2.0",
        "type": "announcements",
        "edate": "07/26/2017",
        "tags": "",
        "bu": ["Security"],
        "scope": "Technical security testing",
        "contact": "",
        "createTS": "June 01, 2017 @ 04:53 PM",
        "id": 2,
        "region": "North America",
        "imglarge": "images/backgroundhead.svg",
        "kma": "Announce as Tier 1 story at Blackhat for Security",
        "status": "Published",
        "desc": "TECHIBM X-Force Red, is a new global force of the industry's."
    }],
    "status": "SUCCESS"
 }

0 个答案:

没有答案