Feature: add config import for picbed setting

This commit is contained in:
萌萌哒赫萝
2023-04-11 16:55:57 +08:00
parent dce26ff6f3
commit 1b15ccb19c
2 changed files with 67 additions and 3 deletions

View File

@@ -167,7 +167,16 @@ async function getCurConfigFormData () {
return curTypeConfigList.find(i => i._id === configId) || {}
}
function updateRuleForm (key: string, value: any) {
try {
ruleForm[key] = value
} catch (e) {
console.log(e)
}
}
defineExpose({
updateRuleForm,
validate,
getConfigType
})