1 parent 9a45c2e commit 157edf5Copy full SHA for 157edf5
1 file changed
templates/question/item.html
@@ -79,7 +79,7 @@ <h5 class="uk-text-center">回答问题</h5>
79
{{ .CSRFTokenHTML }}
80
<div class="uk-margin uk-text-center">
81
<textarea name="answer" class="uk-textarea" rows="5" maxlength="1000"
82
- placeholder="在此处撰写你的回答...">{{ if ne .Question.Answer "" }}{{ .Question.Answer }}{{ else }}{{ .answer }}{{ end }}</textarea>
+ placeholder="在此处撰写你的回答...">{{ if .answer }}{{ .answer }}{{ else }}{{ .Question.Answer }}{{ end }}</textarea>
83
<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">
84
<div uk-form-custom>
85
<a href="#" class="uk-icon-link" uk-icon="image" style="margin-left: 10px"></a>
0 commit comments