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

add

上级 f0dc3579
......@@ -91,18 +91,20 @@ export default {
return {
show: false,
person: null,
env:'test',
userinfo: [
]
};
},
mounted() {
this.getlist();
const { env } = this.$route.query;
this.env = env ? env : 'test';
},
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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册