Skip to content

Commit 1fb4a75

Browse files
feat: 支持主题回复功能 #4 跳转去网页
1 parent c88b81d commit 1fb4a75

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

V2exOS/Views/TopicDetail/TopicDetailView.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ struct TopicDetailView: View {
4646
Text(Date(timeIntervalSince1970: TimeInterval(created)).fromNow())
4747
}
4848
}
49+
Link(destination: URL(string: "https://www.v2ex.com/t/\(topic.id)")!) {
50+
Image(systemName: "safari")
51+
Text("在网页中打开")
52+
}
4953

5054
}.foregroundColor(Color(NSColor.secondaryLabelColor))
5155

0 commit comments

Comments
 (0)