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