1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-09-10 21:30:14 +08:00

修复store中删除缓存的bug

This commit is contained in:
tlx6550 2017-12-22 10:16:09 +08:00
parent 7fef8568c2
commit 9114404a4a

View File

@ -25,7 +25,7 @@ const tagsView = {
for (const i of state.cachedViews) { for (const i of state.cachedViews) {
if (i === view.name) { if (i === view.name) {
const index = state.cachedViews.indexOf(i) const index = state.cachedViews.indexOf(i)
state.cachedViews.splice(index, 1) state.cachedViews.splice(index, index + 1)
break break
} }
} }