未验证 提交 ba98ff95 编写于 作者: S Shiwen Cheng 提交者: GitHub

[1.3.8-prepare][Fix-6051][UI] Fix user info update is out of sync (#6052)

上级 5dd260ec
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
</template> </template>
<script> <script>
import _ from 'lodash' import _ from 'lodash'
import { mapActions } from 'vuex' import { mapActions, mapMutations } from 'vuex'
import mList from './_source/list' import mList from './_source/list'
import mCreateUser from './_source/createUser' import mCreateUser from './_source/createUser'
import mSpin from '@/module/components/spin/spin' import mSpin from '@/module/components/spin/spin'
...@@ -72,6 +72,7 @@ ...@@ -72,6 +72,7 @@
mixins: [listUrlParamHandle], mixins: [listUrlParamHandle],
props: {}, props: {},
methods: { methods: {
...mapMutations('user', ['setUserInfo']),
...mapActions('security', ['getUsersListP']), ...mapActions('security', ['getUsersListP']),
/** /**
* Query * Query
...@@ -103,7 +104,8 @@ ...@@ -103,7 +104,8 @@
render (h) { render (h) {
return h(mCreateUser, { return h(mCreateUser, {
on: { on: {
onUpdate () { onUpdate (param) {
self.setUserInfo(param)
self._debounceGET('false') self._debounceGET('false')
modal.remove() modal.remove()
}, },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册