This commit is contained in:
linlu 2022-10-08 10:57:52 +08:00
parent d79ff735c7
commit c2b0bfbdb3
1 changed files with 8 additions and 3 deletions

View File

@ -175,9 +175,14 @@ export default ({ source, taskId }) => {
setCode({
...response.data
})
lastedValue.current = window.decodeURIComponent(
escape(window.atob(content?.content)))
setEditValue(lastedValue.current)
if(content?.content && content?.content != ""){
lastedValue.current = window.decodeURIComponent(
escape(window.atob(content?.content)))
setEditValue(lastedValue.current)
}else{
lastedValue.current = ""
}
}
if (taskId) {