From cdf3ea06c7797cc1f4bf867d040bddfc3bc66568 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=B1=E8=A3=A4=E8=A1=A9?= Date: Mon, 20 May 2019 11:04:17 +0800 Subject: [PATCH] fix: fixed change roles bug (#2072) --- src/store/modules/user.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/store/modules/user.js b/src/store/modules/user.js index d2b2e67a..dbc29003 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -115,6 +115,9 @@ const actions = { // dynamically add accessible routes router.addRoutes(accessRoutes) + // reset visited views and cached views + dispatch('tagsView/delAllViews', null, { root: true }) + resolve() }) }