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