MarvenGong / fastmock

fastmock在线mock平台
240 stars 28 forks source link

TypeError:Cannot read property 'mockRule' of undefined", #18

Closed yehoan closed 4 years ago

yehoan commented 4 years ago

生成接口 输入value 的时候 json 格式没有问题 然后预览的时候 报错 值为 {"code":0,"msg":"操作成功","bannerList":[{"content":"1","createDate":{"date":29,"day":1,"hours":19,"minutes":35,"month":5,"nanos":0,"seconds":26,"time":1593430526000,"timezoneOffset":-480,"year":120},"id":1374,"img":"https://btc018.oss-cn-shenzhen.aliyuncs.com/202006291935026_aGFPr.jpg","mImg":"","shunxu":4280,"status":1,"title":"E","type":6,"url":"https://coinw.zendesk.com/hc/zh-cn/articles/360050284674"},{"content":"1","createDate":{"date":29,"day":1,"hours":11,"minutes":17,"month":5,"nanos":0,"seconds":42,"time":1593400662000,"timezoneOffset":-480,"year":120},"id":1364,"img":"https://btc018.oss-cn-shenzhen.aliyuncs.com/202006291117042_bPEB6.jpg","mImg":"","shunxu":4290,"status":1,"title":"G","type":6,"url":"https://coinw.zendesk.com/hc/zh-cn/articles/360050258694"},{"content":"1","createDate":{"date":22,"day":1,"hours":21,"minutes":23,"month":5,"nanos":0,"seconds":24,"time":1592832204000,"timezoneOffset":-480,"year":120},"id":1345,"img":"https://btc018.oss-cn-shenzhen.aliyuncs.com/202006222123024_7Vobs.jpg","mImg":"","shunxu":4300,"status":1,"title":"H","type":6,"url":"https://coinw.zendesk.com/hc/zh-cn/articles/360049906014"},{"content":"1","createDate":{"date":16,"day":2,"hours":17,"minutes":47,"month":5,"nanos":0,"seconds":47,"time":1592300867000,"timezoneOffset":-480,"year":120},"id":1334,"img":"https://btc018.oss-cn-shenzhen.aliyuncs.com/202006161747047_RfWOr.jpg","mImg":"","shunxu":4400,"status":1,"title":"F","type":6,"url":"https://coinw.zendesk.com/hc/zh-cn/articles/360050390833"},{"content":"y","createDate":{"date":1,"day":5,"hours":22,"minutes":41,"month":10,"nanos":0,"seconds":8,"time":1572619268000,"timezoneOffset":-480,"year":119},"id":514,"img":"https://btc018.oss-cn-shenzhen.aliyuncs.com/202005252101037_9zLSF.jpg","mImg":"","shunxu":4850,"status":1,"title":"C","type":6,"url":"https://coinw.zendesk.com/hc/zh-cn/articles/360048095634"},{"content":"1","createDate":{"date":7,"day":4,"hours":10,"minutes":23,"month":4,"nanos":0,"seconds":44,"time":1588818224000,"timezoneOffset":-480,"year":120},"id":1234,"img":"https://btc018.oss-cn-shenzhen.aliyuncs.com/202005071023044_tkdts.jpg","mImg":"","shunxu":5100,"status":1,"title":"X","type":6,"url":"https://coinw.zendesk.com/hc/zh-cn/articles/360047252214"},{"content":"1","createDate":{"date":30,"day":1,"hours":21,"minutes":27,"month":11,"nanos":0,"seconds":55,"time":1577712475000,"timezoneOffset":-480,"year":119},"id":829,"img":"https://btc018.oss-cn-shenzhen.aliyuncs.com/202003311531017_LDC2t.jpg","mImg":"","shunxu":9080,"status":1,"title":"hpy","type":6,"url":"https://hyperpay.me/hardware?lang=zh-cn"},{"content":"1","createDate":{"date":21,"day":6,"hours":11,"minutes":57,"month":11,"nanos":0,"seconds":52,"time":1576900672000,"timezoneOffset":-480,"year":119},"id":747,"img":"https://btc018.oss-cn-shenzhen.aliyuncs.com/201912211157052_wsi7H.jpg","mImg":"","shunxu":9320,"status":1,"title":"1","type":6,"url":"https://www.coinw.to/front/verification"},{"content":"b","createDate":{"date":18,"day":5,"hours":11,"minutes":48,"month":9,"nanos":0,"seconds":30,"time":1571370510000,"timezoneOffset":-480,"year":119},"id":397,"img":"https://btc018.oss-cn-shenzhen.aliyuncs.com/upload/images/201910181148030_P1laT.jpg","mImg":"","shunxu":9600,"status":1,"title":"新手营","type":6,"url":"https://www.coinw.to/buy_Bitcoin_guide"},{"content":"-259","createDate":{"date":28,"day":4,"hours":12,"minutes":14,"month":10,"nanos":0,"seconds":28,"time":1574914468000,"timezoneOffset":-480,"year":119},"id":663,"img":"https://btc018.oss-cn-shenzhen.aliyuncs.com/202004021715039_gyp3h.jpg","mImg":"","shunxu":9700,"status":1,"title":"otc","type":6,"url":"https://coinw.zendesk.com/hc/zh-cn/articles/360039155774"}]}

该值json 类型没有问题 我也自查了再在线转换json 网站上面 而且fastMock 也没有报错 但是预览的时候就这样了 image mockRule is undefined ???

MarvenGong commented 4 years ago

录入的url不能带参数,参数在请求中带入