mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-18 08:12:33 +00:00
fix: 配置工单授权时间后更新vuex
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
<template>
|
||||
<Page>
|
||||
<IBox>
|
||||
<GenericCreateUpdateForm v-bind="$data" />
|
||||
<GenericCreateUpdateForm
|
||||
v-bind="$data"
|
||||
@submitSuccess="onSubmitSuccess"
|
||||
/>
|
||||
</IBox>
|
||||
</Page>
|
||||
</template>
|
||||
@@ -82,6 +85,9 @@ export default {
|
||||
methods: {
|
||||
hasValidLicense() {
|
||||
return this.$store.getters.hasValidLicense
|
||||
},
|
||||
onSubmitSuccess(res) {
|
||||
this.$store.state.settings.publicSettings.TICKET_AUTHORIZE_DEFAULT_TIME = res.TICKET_AUTHORIZE_DEFAULT_TIME
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user