标签:erp ESS color vport stat dev div for port
//模拟请求
const express = require(‘express‘);
const app = express();
const sysList = require(‘../static/sysList.json‘)
var apiRoutes = express.Router();
app.use(‘/api‘, apiRoutes);
before(app) {
app.get(‘/api/system/list‘, (req, res) => {
res.json({
// 这里是你的json内容
errno: 0,
data: sysList
})
}),
app.get(‘/api/goods‘, (req, res) => {
res.json({
// 这里是你的json内容
errno: 0,
data: sysList
})
})
}
标签:erp ESS color vport stat dev div for port
原文地址:https://www.cnblogs.com/zyxiaohuihui/p/9026548.html