Commit ef652f6e authored by songrui's avatar songrui

接口请求修改

......@@ -41,7 +41,7 @@ export function fetchBase({
}
baseAxios({
method: method,
url: `/chronic-admin${url}`,
url: `${url}`,
params: params,
data: body,
headers: {
......
......@@ -40,9 +40,6 @@ export default {
computed: {
innerShow() {
return this.show
},
innerUnitId() {
return this.unitId
}
},
created() {
......@@ -51,8 +48,9 @@ export default {
methods: {
getData() {
this.array = []
if (!this.unitId) return
this.loading = true
getOfficeList(this.innerUnitId).then(res => {
getOfficeList(this.unitId).then(res => {
this.array = res.data || []
}).finally(() => {
this.loading = false
......
......@@ -47,9 +47,6 @@ export default {
},
innerShow() {
return this.show
},
innerUnitId() {
return this.unitId
}
},
created() {
......@@ -60,7 +57,7 @@ export default {
this.array = []
if (!this.officeId) return
this.loading = true
getOfficeDoctor(this.innerUnitId, this.officeId).then(res => {
getOfficeDoctor(this.unitId, this.officeId).then(res => {
this.array = res.data || []
}).finally(() => {
this.loading = false
......
......@@ -30,19 +30,19 @@ module.exports = defineConfig({
}
},
'/chronic-admin': {
// target: 'https://beta-tumour.zmnyjk.com',
target: 'http://192.168.1.26:8900',
target: 'https://beta-tumour.zmnyjk.com',
// target: 'http://192.168.1.26:8900',
changOrigin: true,
pathRewrite: {
'^/chronic-admin': '/'
'^/chronic-admin': '/chronic-admin'
}
},
'/chronic-resident': {
target: 'http://192.168.1.43:8903',
// target: 'https://beta-tumour.zmnyjk.com',
// target: 'http://192.168.1.43:8903',
target: 'https://beta-tumour.zmnyjk.com',
changOrigin: true,
pathRewrite: {
'^/chronic-resident': '/'
'^/chronic-resident': '/chronic-resident'
}
}
},
......
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