Browse Source

按钮权限

xtk 7 months ago
parent
commit
852bc2ca7c
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/store/modules/user.js

+ 4 - 0
src/store/modules/user.js

@@ -63,6 +63,10 @@ const user = {
             commit('DEL_ALL_TAG');
             commit('CLEAR_LOCK');
           }
+          getButtons().then(res => {
+            const pdata = res.data.data;
+            commit('SET_PERMISSION', pdata);
+          })
           resolve();
         }).catch(error => {
           reject(error);