Fix duplicate user var from refactoring
This commit is contained in:
parent
a1ca679c3c
commit
808cd1d20e
@ -97,7 +97,7 @@ export default {
|
|||||||
},
|
},
|
||||||
inject: ["$showError", "$showSuccess"],
|
inject: ["$showError", "$showSuccess"],
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(useAuthStore, ["user"]),
|
...mapState(useAuthStore, { sUser: "user" }),
|
||||||
...mapState(useLayoutStore, ["show"]),
|
...mapState(useLayoutStore, ["show"]),
|
||||||
...mapWritableState(useLayoutStore, ["loading"]),
|
...mapWritableState(useLayoutStore, ["loading"]),
|
||||||
isNew() {
|
isNew() {
|
||||||
@ -170,7 +170,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
await api.update(user);
|
await api.update(user);
|
||||||
|
|
||||||
if (user.id === this.user.id) {
|
if (user.id === this.sUser.id) {
|
||||||
this.setUser({ ...cloneDeep(user) });
|
this.setUser({ ...cloneDeep(user) });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user