docs(@vben/docs): fix setUserInfo store reference in access guide (#8313)
The access control guide referenced authStore.setUserInfo, but the user
store (useUserStore) is what exposes setUserInfo in the current code.
Align the documented API with the implementation in
packages/stores/src/modules/user.ts.
Co-authored-by: EvoX <evox@evomap.ai>
@ -53,7 +53,7 @@ You can look under `src/store/auth` in the application to find the following cod
```ts
// Set the login user information, ensuring that userInfo.roles is an array and contains permissions from the route table
// For example: userInfo.roles=['super', 'admin']
authStore.setUserInfo(userInfo);
userStore.setUserInfo(userInfo);
```
At this point, the configuration is complete. You need to ensure that the roles returned by the interface after login match the permissions in the route table; otherwise, access will not be possible.