Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
32dee8e056
@ -27,7 +27,7 @@ class FunctionField(serializers.Field):
|
|||||||
|
|
||||||
def to_internal_value(self, data):
|
def to_internal_value(self, data):
|
||||||
if not callable(data):
|
if not callable(data):
|
||||||
self.fail('不是一個函數', value=data)
|
self.fail('不是一个函數', value=data)
|
||||||
return data
|
return data
|
||||||
|
|
||||||
def to_representation(self, value):
|
def to_representation(self, value):
|
||||||
|
|||||||
@ -172,7 +172,7 @@ function getDocument() {
|
|||||||
cloneDocumentList.value = res.data
|
cloneDocumentList.value = res.data
|
||||||
documentList.value = res.data
|
documentList.value = res.data
|
||||||
currentDocument.value = cloneDocumentList.value?.length > 0 ? cloneDocumentList.value[0].id : ''
|
currentDocument.value = cloneDocumentList.value?.length > 0 ? cloneDocumentList.value[0].id : ''
|
||||||
getParagraphList(currentDocument.value)
|
currentDocument.value && getParagraphList(currentDocument.value)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user