Policy要继承IPolicy

This commit is contained in:
itcsx committed 2026-09-06 00:06:06 +08:00
1 parent 1d766902f6
commit 280ccf4de8
4 files changed
+5 -3

No files matched your search

+1
View File
@@ -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));