Commit 3ed39da6 authored by sjf1256754123's avatar sjf1256754123

修改接口地址

parent 5b3c8489
......@@ -385,14 +385,31 @@
},
onLoad(option) {
this.id = option.id || ''
if(option.id){
this.getInfo(option.id)
}
// this.id = option.id || ''
// if(option.id){
// this.getInfo(option.id)
// }
this.getOrg()
},
methods: {
getOrg(){
const data = {
params: {
pageNum: 1,
pageSize: 1000000
}
}
this.$http.get(`/sict-ncov/org/page`, data).then(res => {
const d = res.data
if (d.code == 1) {
console.log(d)
}
}).catch(err => {
console.log(err)
})
},
// 获取信息
getInfo(id){
// this.$http.get(`/ewell-gastric-cancer-data/report/selectReportBySampleId?id=${id}`).then(res => {
......
......@@ -61,11 +61,7 @@
userInfo.avatarUrl = obj.avatarUrl
}
this.$store.dispatch('user/setInfo', Object.assign(obj, userInfo))
this.$store.dispatch('user/setToken', d.result)
this.getFamilyRelation()
this.getEliminate()
this.getNotice2()
}
}).catch(err => {
console.log(err)
......
......@@ -10,8 +10,8 @@
import store from '../store'
export default class Request {
config = {
baseUrl: 'https://health.sh-sict.com/gastric-api',
// baseUrl: 'http://139.9.163.126/gastric-api',
baseUrl: 'https://health.sh-sict.com/ncov-api',
// baseUrl: 'http://139.9.163.126/ncov-api',
header: {
'content-type': 'application/json;charset=UTF-8',
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment