Source/UBCS-WEB/src/views/code/code.vue
@@ -2648,12 +2648,12 @@ // console.log(this.form); }, // 第一次请求的枚举数据放缓存 getLocalStorageEnum(key){ let enumCach = JSON.parse(localStorage.getItem(key)); getLocalStorageEnum(enumKey){ let enumCach = JSON.parse(localStorage.getItem(enumKey)); if(enumCach == null) { getDictionary({code: key}).then(res=>{ getDictionary({code: enumKey}).then(res=>{ enumCach = res.data.data; localStorage.setItem(key,JSON.stringify(res.data.data)); localStorage.setItem(enumKey,JSON.stringify(res.data.data)); }) } return enumCach;