Skip to content

Commit 157edf5

Browse files
committed
templates(question): update answer flash
1 parent 9a45c2e commit 157edf5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

templates/question/item.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ <h5 class="uk-text-center">回答问题</h5>
7979
{{ .CSRFTokenHTML }}
8080
<div class="uk-margin uk-text-center">
8181
<textarea name="answer" class="uk-textarea" rows="5" maxlength="1000"
82-
placeholder="在此处撰写你的回答...">{{ if ne .Question.Answer "" }}{{ .Question.Answer }}{{ else }}{{ .answer }}{{ end }}</textarea>
82+
placeholder="在此处撰写你的回答...">{{ if .answer }}{{ .answer }}{{ else }}{{ .Question.Answer }}{{ end }}</textarea>
8383
<div x-data="{ files: null }" style="width: 100%; background-color: #f8f8f8; display: flex; padding-top: 5px; padding-bottom: 5px; align-items: center; justify-content: start;gap: 5px">
8484
<div uk-form-custom>
8585
<a href="#" class="uk-icon-link" uk-icon="image" style="margin-left: 10px"></a>

0 commit comments

Comments
 (0)