Policy要继承IPolicy
This commit is contained in:
1 parent
1d766902f6
commit
280ccf4de8
4 files changed
+5
-3
No files matched your search
@@ -8,6 +8,7 @@ export const useFileTypePolicy = () => {
|
||||
const getSelectOption = async (blank: boolean): Promise<SelectOption[]> => {
|
||||
let selectOptions: SelectOption[] = [];
|
||||
let str = storage.get(fileTypePolicy);
|
||||
|
||||
if (str === null) {
|
||||
selectOptions = await fileTypePolicyService.FindSelectOption(blank);
|
||||
storage.set(fileTypePolicy, JSON.stringify(selectOptions));
|
||||
|
||||
Reference in new issue
Block a user