move error message into info div

This commit is contained in:
lilydjwg 2021-10-06 23:28:02 +08:00
parent 3e482cb777
commit 72eb7f2f28

View File

@ -141,13 +141,11 @@
{/each}
{/if}
{#if error}
<div class="error">{error}</div>
{/if}
<div class="info">
{#if loading}
<p>正在加载...</p>
{:else if error}
<p class="error">{error}</p>
{:else if result && result.messages.length == 0}
<p>没有匹配的消息。</p>
{:else if result && result.has_more}