Commit 93bc2f0a by chenwq

售后档案客户

1 parent fd1aaba1
import Request from './request'
import Request from '../request'
var request = new Request()
const afterApi = {
// 售后档案客户
getFile: params => {
return request.get('brand/aftersale', params)
}
// 售后档案客户
const getFile = params => {
return request.get('brand/aftersale', params)
}
export default afterApi
export default { getFile }
......@@ -39,9 +39,9 @@ class Request {
.then(res => {
return res.json()
})
.catch(error => {
alert(error)
})
// .catch(error => {
// alert(error)
// })
}
}
......
......@@ -14,7 +14,6 @@
<script>
import { changeMixin } from '@/mixins'
import afterApi from '@/api/afterSales'
export default {
name: 'File',
mixins: [changeMixin],
......@@ -64,7 +63,7 @@ export default {
queryType: 0
}
}
afterApi.getFile(params).then(res => {
this.api.afterSales.getFile(params).then(res => {
console.log(res)
})
},
......
......@@ -38,21 +38,10 @@ module.exports = {
onProxyReq: (proxyReq, req, res) => {
// console.log(`原路径:${req.originalUrl}`)
// console.log(`代理路径:${req.url}`)
console.log(proxyReq)
// console.log(proxyReq)
}
}
}
// proxy: {
// //配置跨域
// '/api': {
// target: "https://test.xxx.com",
// // ws:true,
// changOrigin:true,
// pathRewrite:{
// '^/api':'/'
// }
// }
// }
},
css: {
extract: IS_PROD, // 是否将组件中的 CSS 提取至一个独立的 CSS 文件中 (而不是动态注入到 JavaScript 中的 inline 代码)。
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!