فهرست منبع

[Fix 0000] 修复错误的请求调用导致系统阻塞的问题

houzekong 4 روز پیش
والد
کامیت
bc8af8bdc3
2فایلهای تغییر یافته به همراه0 افزوده شده و 11 حذف شده
  1. 0 8
      src/api/vent/index.ts
  2. 0 3
      src/store/modules/permission.ts

+ 0 - 8
src/api/vent/index.ts

@@ -1,12 +1,10 @@
 import { defHttp } from '/@/utils/http/axios';
 import { AesEncryption } from '/@/utils/cipher';
 import { loginCipher } from '/@/settings/encryptionSetting';
-import { useVentStore } from '/@/store/modules/vent';
 
 enum Api {
   DEVICE_CONTROL = '/safety/ventanalyMonitorData/devicecontrol', // 开关控制
   SPRAY_CONTROL = '/ventanaly-device/safety/ventanalyMonitorData/batchDevicecontrol', // 皮带三级防灭火批量控制
-  modalNameList = '/ventanaly-device/safety/modelAlarmInfo/getAllModelFileJson',
 }
 
 // Get personal center-basic settings
@@ -35,9 +33,3 @@ export const sprayControlApi = (data) => {
     return defHttp.put({ url: Api.SPRAY_CONTROL, data });
   }
 };
-
-export const getModalType = async () => {
-  const res = await defHttp.get({ url: Api.modalNameList });
-  // 处理文件名称
-  debugger;
-};

+ 0 - 3
src/store/modules/permission.ts

@@ -25,7 +25,6 @@ import { PageEnum } from '/@/enums/pageEnum';
 // import { cloneDeep } from 'lodash-es';
 import { useGlobSetting } from '/@/hooks/setting';
 import { useVentStore } from '/@/store/modules/vent';
-import { getModalType } from '/@/api/vent/index';
 
 // 系统权限
 interface AuthItem {
@@ -138,7 +137,6 @@ export const usePermissionStore = defineStore({
     async buildRoutesAction(): Promise<AppRouteRecordRaw[]> {
       const userStore = useUserStore();
       const appStore = useAppStoreWithOut();
-      const ventStore = useVentStore();
 
       let routes: AppRouteRecordRaw[] = [];
       const roleList = toRaw(userStore.getRoleList) || [];
@@ -299,7 +297,6 @@ export const usePermissionStore = defineStore({
       patchHomeAffix(routes);
 
       /** 查询系统模型 */
-      await getModalType();
       return routes;
     },
     setAuthData(systemPermission) {