无人机管理后台前端(已迁走)
罗广辉
2025-10-16 4524d6bdd8421d43db113f7738fe6062f62d7b58
feat: 按钮也需要根据类型返回
2 files modified
5 ■■■■■ changed files
src/api/user.js 3 ●●●● patch | view | raw | blame | history
src/store/modules/user.js 2 ●●● patch | view | raw | blame | history
src/api/user.js
@@ -122,10 +122,11 @@
    },
  });
export const getButtons = () =>
export const getButtons = (params) =>
  request({
    url: '/blade-system/menu/buttons',
    method: 'get',
    params
  });
export const getCaptcha = () =>
src/store/modules/user.js
@@ -299,7 +299,7 @@
    },
    GetButtons({ commit }) {
      return new Promise(resolve => {
        getButtons().then(res => {
        getButtons({sysType: 1}).then(res => {
          const data = res.data.data;
          commit('SET_PERMISSION', data);
          resolve();