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

Merge branch 'feature/zjx' into 'develop'

Feature/zjx

See merge request !180
...@@ -91,18 +91,21 @@ export default { ...@@ -91,18 +91,21 @@ export default {
return { return {
show: false, show: false,
person: null, person: null,
env:'test',
userinfo: [ userinfo: [
] ]
}; };
}, },
mounted() { mounted() {
const { env } = this.$route.query;
this.env = env ? env : 'prod';
this.getlist(); this.getlist();
}, },
methods: { methods: {
getlist() { getlist() {
const that = this; 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); console.log(data);
if (data.code === '000000') { if (data.code === '000000') {
that.userinfo = data.data; that.userinfo = data.data;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册