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

View File

@ -79,7 +79,7 @@ export default {
prop: 'id', prop: 'id',
formatterArgs: { formatterArgs: {
onUpdate: function({ row, col }) { 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) { canUpdate: function(row, cellValue) {
return (row.name !== 'default' && row.name !== 'null') return (row.name !== 'default' && row.name !== 'null')