fix
This commit is contained in:
parent
58de69f832
commit
f9aaa4a892
@ -80,14 +80,17 @@ struct ListView: View {
|
||||
@State var detailModel = DetailModel()
|
||||
|
||||
var body: some View {
|
||||
VStack(alignment: .center) {
|
||||
VStack(alignment: .center, spacing: 20) {
|
||||
|
||||
VStack(alignment: .leading, spacing: 20) {
|
||||
Text(detailModel.name)
|
||||
.font(.system(size: 30))
|
||||
.fontWeight(.bold)
|
||||
|
||||
Text("返回")
|
||||
HStack {
|
||||
VStack(alignment: .leading, spacing: 20) {
|
||||
Text(detailModel.name)
|
||||
.font(.system(size: 30))
|
||||
.fontWeight(.bold)
|
||||
|
||||
Text("返回")
|
||||
}
|
||||
Spacer()
|
||||
}
|
||||
.background(Color.yellow)
|
||||
|
||||
@ -147,7 +150,7 @@ struct ListView: View {
|
||||
|
||||
Spacer()
|
||||
}
|
||||
.border(Color.red)
|
||||
//.border(Color.red)
|
||||
.frame(width: 370, alignment: .center)
|
||||
.task {
|
||||
await detailModel.loadData(dramaId: 124)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user