import * as fs from 'fs';
if (fs.existsSync('app/public/static/Data.json')) //判断是否存在此文件
{
//读取文件内容,并转化为Json对象
let userBugsJson = JSON.parse(fs.readFileSync("app/public/static/Data.json", "utf8"));
//获取Json里key为data的数据
const data = userBugsJson['data'];
return data;
}