|
@@ -57,7 +57,9 @@ const mutations = {
|
|
const actions = {
|
|
const actions = {
|
|
// 取菜单
|
|
// 取菜单
|
|
menuTree ({ commit, state }) {
|
|
menuTree ({ commit, state }) {
|
|
- let res = axios.get(proPath + 'v1/sysmenus/getRootMenu');
|
|
|
|
|
|
+ let firstOne = window.localStorage.getItem('companys') ? JSON.parse(window.localStorage.getItem('companys'))[0].id : '';
|
|
|
|
+ let companyId = window.localStorage.getItem('companyId') ? window.localStorage.getItem('companyId') : firstOne;
|
|
|
|
+ let res = axios.get(proPath + 'v1/sysmenus/getRootMenu?companyId=' + companyId);
|
|
return res;
|
|
return res;
|
|
},
|
|
},
|
|
// 修改菜单
|
|
// 修改菜单
|