This commit is contained in:
2024-07-01 12:31:11 +08:00
parent e048083dfe
commit 623db36060
2 changed files with 17 additions and 5 deletions

View File

@ -147,11 +147,22 @@ export default {
this.$tab.refreshPage(view);
},
closeSelectedTag(view) {
this.$tab.closePage(view).then(({ visitedViews }) => {
if (this.isActive(view)) {
this.toLastView(visitedViews, view)
}
})
let url = view.fullPath.split('?')[1]
let urls = new URLSearchParams('?' + url)
let path = urls.get('path')
if (path) {
this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => {
this.$router.push({
path: path
});
})
} else {
this.$tab.closePage(view).then(({ visitedViews }) => {
if (this.isActive(view)) {
this.toLastView(visitedViews, view)
}
})
}
},
closeRightTags() {
this.$tab.closeRightPage(this.selectedTag).then(visitedViews => {

View File

@ -253,6 +253,7 @@ export default {
this.$router.push({
path: "/patient/patientdetails",
query: {
path: '/patient/patientInfo',
patientId: row.id,
cardNo: row.cardNo,
patientName: row.patientName,