Commit ef652f6e authored by songrui's avatar songrui

接口请求修改

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