如果我使用此代码,请正常工作。
<div id="sectionOne" class="container-fluid d-flex flex-column justify-content-center align-items-center" style="height: 80vh;">
<div class="row d-flex justify-content-center" style="color: #0069d9">
<h1 >Section One</h1>
</div>
<div class="row section-one-row d-flex justify-content-around">
<div class="col-lg-4 text-center">
<div style="padding: 40px">
<div class="card-item" style="padding: 40px;">
<h3>Card A</h3>
<h5>
Some text here. Some text here. Some text here
</h5>
</div>
</div>
</div>
<div class="col-lg-4 text-center">
<div style="padding: 40px">
<div class="card-item" style="padding: 40px;">
<h3>Card B</h3>
<h5>
Some text here. Some text here. Some text here
</h5>
</div>
</div>
</div>
<div class="col-lg-4 text-center">
<div style="padding: 40px">
<div class="card-item" style="padding: 40px;">
<h3>Card C</h3>
<h5>
Some text here. Some text here. Some text here
</h5>
</div>
</div>
</div>
</div>
<div class="row section-one-row d-flex justify-content-around">
<div class="col-12 d-flex justify-content-center">
<button id="caption-button" class="btn btn-primary">Get Started!</button>
</div>
</div>
</div>
如果我在SwiftUI中使用相同的代码,请不要使用(请参见截屏屏幕)
如何消除错误?
答案 0 :(得分:0)
index => "my-index-%{+YYYY-MM-dd}"
必须返回一个视图,因此只需添加body
或您想在return EmptyView()
之后显示的任何视图
fetchUnreadCount
无论如何,您不应该执行诸如在View中获取数据之类的事情,这项工作应该在模型中完成