This commit is contained in:
@@ -45,7 +45,9 @@ actor VODClient {
|
|||||||
return [
|
return [
|
||||||
"AccessKeyId": account.accessKeyId,
|
"AccessKeyId": account.accessKeyId,
|
||||||
"Format": "JSON",
|
"Format": "JSON",
|
||||||
|
"SignatureMethod": "HMAC-SHA1",
|
||||||
"SignatureNonce": UUID().uuidString,
|
"SignatureNonce": UUID().uuidString,
|
||||||
|
"SignatureVersion": "1.0",
|
||||||
"Timestamp": formatter.string(from: Date()),
|
"Timestamp": formatter.string(from: Date()),
|
||||||
"Version": "2017-03-21",
|
"Version": "2017-03-21",
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -48,9 +48,20 @@ struct VideoListView: View {
|
|||||||
.padding()
|
.padding()
|
||||||
|
|
||||||
if let error = errorMessage {
|
if let error = errorMessage {
|
||||||
Text(error)
|
HStack {
|
||||||
.foregroundStyle(.red)
|
Text(error)
|
||||||
.padding(.horizontal)
|
.foregroundStyle(.red)
|
||||||
|
Button {
|
||||||
|
NSPasteboard.general.clearContents()
|
||||||
|
NSPasteboard.general.setString(error, forType: .string)
|
||||||
|
} label: {
|
||||||
|
Image(systemName: "doc.on.doc")
|
||||||
|
}
|
||||||
|
.buttonStyle(.borderless)
|
||||||
|
.help("复制错误信息")
|
||||||
|
Spacer()
|
||||||
|
}
|
||||||
|
.padding(.horizontal)
|
||||||
}
|
}
|
||||||
|
|
||||||
Table(of: VideoItem.self, selection: $selectedVideos) {
|
Table(of: VideoItem.self, selection: $selectedVideos) {
|
||||||
|
|||||||
Reference in New Issue
Block a user