|
@@ -1,6 +1,5 @@
|
|
|
const useTagsViewStore = defineStore(
|
|
|
- 'tags-view',
|
|
|
- {
|
|
|
+ 'tags-view', {
|
|
|
state: () => ({
|
|
|
visitedViews: [],
|
|
|
cachedViews: [],
|
|
@@ -14,7 +13,7 @@ const useTagsViewStore = defineStore(
|
|
|
addIframeView(view) {
|
|
|
if (this.iframeViews.some(v => v.fullPath === view.fullPath)) return
|
|
|
let title = view.meta.title || 'no-name'
|
|
|
- if(view.path == '/platform_manage/process/processApproval') {
|
|
|
+ if (view.path == '/platform_manage/process/processApproval') {
|
|
|
title = view.query.processType == 10 ? '审批' : view.query.processType == 20 ? '查看' : '发起'
|
|
|
}
|
|
|
this.iframeViews.push(
|
|
@@ -26,7 +25,7 @@ const useTagsViewStore = defineStore(
|
|
|
addVisitedView(view) {
|
|
|
if (this.visitedViews.some(v => v.fullPath === view.fullPath)) return
|
|
|
let title = view.meta.title || 'no-name'
|
|
|
- if(view.path == '/platform_manage/process/processApproval') {
|
|
|
+ if (view.path == '/platform_manage/process/processApproval') {
|
|
|
title = view.query.processType == 10 ? '审批' : view.query.processType == 20 ? '查看' : '发起'
|
|
|
}
|
|
|
this.visitedViews.push(
|
|
@@ -153,7 +152,7 @@ const useTagsViewStore = defineStore(
|
|
|
if (i > -1) {
|
|
|
this.cachedViews.splice(i, 1)
|
|
|
}
|
|
|
- if(item.meta.link) {
|
|
|
+ if (item.meta.link) {
|
|
|
const fi = this.iframeViews.findIndex(v => v.fullPath === item.fullPath)
|
|
|
this.iframeViews.splice(fi, 1)
|
|
|
}
|
|
@@ -176,7 +175,7 @@ const useTagsViewStore = defineStore(
|
|
|
if (i > -1) {
|
|
|
this.cachedViews.splice(i, 1)
|
|
|
}
|
|
|
- if(item.meta.link) {
|
|
|
+ if (item.meta.link) {
|
|
|
const fi = this.iframeViews.findIndex(v => v.fullPath === item.fullPath)
|
|
|
this.iframeViews.splice(fi, 1)
|
|
|
}
|
|
@@ -188,4 +187,4 @@ const useTagsViewStore = defineStore(
|
|
|
}
|
|
|
})
|
|
|
|
|
|
-export default useTagsViewStore
|
|
|
+export default useTagsViewStore
|