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

add

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