🐛 Fix: some bugs

ISSUES CLOSED: #722
This commit is contained in:
PiEgg
2021-08-21 10:42:52 +08:00
parent 2d3e779e0b
commit a676c083fe
8 changed files with 58 additions and 12 deletions

View File

@@ -116,7 +116,7 @@ export default class extends Vue {
async handleConfig (val: any) {
this.ruleForm = Object.assign({}, {})
const config = await this.getConfig<IPicGoPluginConfig>(this.getConfigType())
if (val.length > 0 && config) {
if (val.length > 0) {
this.configList = cloneDeep(val).map((item: any) => {
let defaultValue = item.default !== undefined
? item.default : item.type === 'checkbox'