mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-09 13:53:38 +08:00
fix(tag): 修复关闭左侧/右侧标签页时未删除缓存路由问题 (#66)
This commit is contained in:
@@ -46,7 +46,7 @@ export const usePermissionStore = defineStore({
|
||||
case "delete":
|
||||
// eslint-disable-next-line no-case-declarations
|
||||
const delIndex = this.cachePageList.findIndex(v => v === name);
|
||||
this.cachePageList.splice(delIndex, 1);
|
||||
delIndex !== -1 && this.cachePageList.splice(delIndex, 1);
|
||||
break;
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user