fix: 配置工单授权时间后更新vuex

This commit is contained in:
feng626
2022-08-15 11:12:57 +08:00
parent 325f21f8b5
commit 4f08fef25a

View File

@@ -1,7 +1,10 @@
<template> <template>
<Page> <Page>
<IBox> <IBox>
<GenericCreateUpdateForm v-bind="$data" /> <GenericCreateUpdateForm
v-bind="$data"
@submitSuccess="onSubmitSuccess"
/>
</IBox> </IBox>
</Page> </Page>
</template> </template>
@@ -82,6 +85,9 @@ export default {
methods: { methods: {
hasValidLicense() { hasValidLicense() {
return this.$store.getters.hasValidLicense return this.$store.getters.hasValidLicense
},
onSubmitSuccess(res) {
this.$store.state.settings.publicSettings.TICKET_AUTHORIZE_DEFAULT_TIME = res.TICKET_AUTHORIZE_DEFAULT_TIME
} }
} }
} }