提交 fc1c60db 编写于 作者: 张敬贤's avatar 张敬贤

Merge branch 'feature/zjx' into 'develop'

Feature/zjx

See merge request !180
......@@ -91,18 +91,21 @@ export default {
return {
show: false,
person: null,
env:'test',
userinfo: [
]
};
},
mounted() {
const { env } = this.$route.query;
this.env = env ? env : 'prod';
this.getlist();
},
methods: {
getlist() {
const that = this;
axios.get('https://project.picahealth.com/batch_get_person_info?num=10').then(function ({data}) {
axios.get(`https://project.picahealth.com/batch_get_person_info?num=10&env=${this.env}`).then(function ({data}) {
console.log(data);
if (data.code === '000000') {
that.userinfo = data.data;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册