Commit 185a78cc authored by 李志鸣's avatar 李志鸣

fea(api文件): 更新api文件

parent 2743b7d6
......@@ -13,8 +13,8 @@ module.exports = {
// 代理后端服务器
proxyTable: {
'/host': {
target: 'http://10.100.172.150:9108', //设置你调用的接口域名和端口号 别忘了加http
// target: 'http://192.168.43.244:8888',// 东伟服务器地址
// target: 'http://10.100.172.150:9108', //设置你调用的接口域名和端口号 别忘了加http
target: 'http://192.168.43.244:8888',// 东伟服务器地址
changeOrigin: true,
pathRewrite: {
'^/host': ''//这里理解成用‘/host’代替target里面的地址,后面组件中我们掉接口时直接用api代替 比如我要调用'http://40.00.100.100:3002/user/add',直接写‘/api/user/add’即可
......
......@@ -71,12 +71,12 @@
"url": "/api/check/addCheckRecord",
"method": "post"
},
"deleteCheckItemModelById-delete": {
"url": "/api/check/deleteCheckItemModelById",
"id-delete": {
"url": "/api/check/deleteCheckItemModelById/{id}",
"method": "delete"
},
"expert-post": {
"url": "/api/check/expert",
"recordId-post": {
"url": "/api/check/expert/{recordId}",
"method": "post"
},
"getCheckByType-get": {
......@@ -168,6 +168,12 @@
"method": "get"
}
},
"led-controller": {
"ledInfo-get": {
"url": "/api/led/ledInfo",
"method": "get"
}
},
"report-data-source-controller": {
"reportDataSource-post": {
"url": "/api/reportDataSource",
......
This diff is collapsed.
......@@ -65,8 +65,6 @@
methods: {
// 检测子路由是否有权限访问
checkCurrentRouteAuthority (children, item) {
console.log('qxCHILD', children)
console.log('qxITEM', item)
if (!item.meta) {
return false; // 匹配到框架级路由
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment