提交 c7039802 authored 作者: 王鹏飞's avatar 王鹏飞

update

上级 e680e20c
import httpRequest from '@/utils/axios'
// 获取事务类型列表
export function getType(params) {
return httpRequest({
url: '/v2/lobby/affairs',
method: 'get',
params
})
}
......@@ -4,7 +4,7 @@ import { Toast } from 'vant'
import router from '@/router'
const httpRequest = axios.create({
// baseURL: process.env.VUE_APP_BASE_API,
baseURL: process.env.VUE_APP_BASE_API,
timeout: 60000,
headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
})
......
......@@ -16,6 +16,7 @@
</div>
</template>
<script>
import * as api from '@/api/index'
export default {
data() {
return {
......@@ -33,7 +34,15 @@ export default {
name: 'list',
query: Object.assign(this.$route.query, { channel: this.radio })
})
},
getList() {
api.getType().then(response => {
console.log(response)
})
}
},
beforeMount() {
this.getList()
}
}
</script>
......
......@@ -4,6 +4,9 @@ module.exports = {
proxy: {
'/api/user_center': {
target: 'https://e-learning3.ezijing.com'
},
'/v2': {
target: 'https://lms-api.ezijing.com'
}
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论