fix: 修复命令存储更新问题

This commit is contained in:
Orange 2020-09-24 15:50:13 +08:00
parent 6cb6e6444b
commit 628395e447
2 changed files with 6 additions and 3 deletions

View File

@ -58,10 +58,12 @@ export default {
label: this.$t('sessions.bucket')
},
access_key: {
label: 'Access key'
label: 'Access key',
el: { 'show-password': true }
},
secret_key: {
label: 'Secret key'
label: 'Secret key',
el: { 'show-password': true }
},
endpoint: {
label: this.$t('sessions.endPoint'),
@ -127,6 +129,7 @@ export default {
this.formData = this.convertMataToForm(this.replayData)
this.loading = false
})
return
}
if (query.type) {
this.loading = false

View File

@ -79,7 +79,7 @@ export default {
prop: 'id',
formatterArgs: {
onUpdate: function({ row, col }) {
this.$router.push({ name: 'ReplayStorageUpdate', params: { id: row.id }})
this.$router.push({ name: 'ReplayStorageUpdate', params: { id: row.id }, query: { type: row.type }})
},
canUpdate: function(row, cellValue) {
return (row.name !== 'default' && row.name !== 'null')