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