Commit 05639637 authored by 胡小根's avatar 胡小根
parent 9a372f4d
module.exports = { module.exports = {
NODE_ENV: '"development"', NODE_ENV: '"development"',
ENV_CONFIG: '"dev"', ENV_CONFIG: '"dev"',
BASE_API: '"http://zjk.haomo-studio.com/zhangjiakouOA"' BASE_API: '"/api"'
} }
...@@ -10,7 +10,15 @@ module.exports = { ...@@ -10,7 +10,15 @@ module.exports = {
// Paths // Paths
assetsSubDirectory: 'static', assetsSubDirectory: 'static',
assetsPublicPath: '/', assetsPublicPath: '/',
proxyTable: {}, proxyTable: {
'/api': {
target: 'http://haomo-studio.com:28086/org',
changeOrigin: true,
pathRewrite: {
'^/api': '/'
}
}
},
// Various Dev Server settings // Various Dev Server settings
host: 'localhost', // can be overwritten by process.env.HOST host: 'localhost', // can be overwritten by process.env.HOST
......
...@@ -230,7 +230,8 @@ ...@@ -230,7 +230,8 @@
getList() { getList() {
const self = this const self = this
self.listLoading = true self.listLoading = true
request(self.schema).then(resp => { request(self.schema.modelUnderscorePlural).then(resp => {
console.log(resp)
self.list = resp.data.data self.list = resp.data.data
self.total = resp.data.total self.total = resp.data.total
self.listLoading = false self.listLoading = false
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<script> <script>
import HmComplexTable from './HmComplexTable.vue' import HmComplexTable from './HmComplexTable.vue'
import schema from '../../schema' import schema from '../../schemas/hm_org_schema'
export default { export default {
name: 'HmComplexTable', name: 'HmComplexTable',
......
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