Commit 62042df4 authored by 芮自成's avatar 芮自成

返回路由修改

parent 034238e4
......@@ -66,8 +66,8 @@ export default {
if (!token) {
token = sessionStorage.getItem('token')
if (process.env.NODE_ENV !== 'production') {
// token = '51f77c42-29a2-4d50-8010-bd19bab99a31'
token = 'f849fb46-b0d1-4b9e-bc1c-69f962d500ba'
// token = '9486b3ed-332d-4a2e-86dc-0502a3e2bd69'
token = '25637a72-13ba-4efb-a892-e443a93113ef'
}
}
if (token) {
......
......@@ -8,7 +8,7 @@
:disabled="$route.query.id ? true : false"
placeholder="请选择"
:rules="rules.diseaseTypeName"
@click="showDiseaseType = true"
@click="showDiseaseTypeChange"
class="form-input mb-5"
/>
<van-popup v-model:show="showDiseaseType" position="bottom">
......@@ -145,6 +145,10 @@ export default {
// }
},
showDiseaseTypeChange() {
if (this.$route.query.id) return
this.showDiseaseType = true
}
}
}
......
......@@ -57,7 +57,13 @@ export default {
onSubmit() {
this.$refs.formCont.submit().then(() => {
this.$message.success('新增成功')
this.$router.go(-1)
// this.$router.go(-1)
this.$router.replace({
path: '/doctor/patient-detail',
query: {
residentInfoId: this.routeQuery.residentInfoId
}
})
this.store.onRefreshMark()
})
}
......
......@@ -30,12 +30,12 @@ module.exports = defineConfig({
}
},
'/chronic-admin': {
// target: 'https://beta-tumour.zmnyjk.com',
target: 'http://192.168.1.202:8900',
target: 'https://beta-tumour.zmnyjk.com',
// target: 'http://192.168.1.202:8900',
changOrigin: true,
pathRewrite: {
'^/chronic-admin': '/'
// '^/chronic-admin': '/chronic-admin'
// '^/chronic-admin': '/'
'^/chronic-admin': '/chronic-admin'
}
},
'/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