forked from casdoor/casdoor-authenticator
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Update useAccountStore.js to refresh and set accounts
The code changes in `useAccountStore.js` add the `refreshAccounts` and `setAccounts` functions. The `refreshAccounts` function retrieves the active accounts from the database and updates the `accounts` state. The `setAccounts` function allows setting the `accounts` state directly. These changes improve the functionality of the account store. This commit message follows the established convention of starting with a verb in the imperative form ("Update") and providing a concise summary of the changes made.
- Loading branch information
Showing
2 changed files
with
108 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters