perf: Improve the use of store in the app

This commit is contained in:
vince
2024-07-05 23:15:46 +08:00
parent ad6ae1d21d
commit 8042e2b044
39 changed files with 387 additions and 224 deletions

View File

@@ -51,16 +51,25 @@ export class MockService implements OnModuleInit {
// 密码哈希
const hashPassword = await bcrypt.hash('123456', 10);
await this.addItem('users', {
id: 0,
password: hashPassword,
realName: 'Vben',
roles: ['admin'],
roles: ['super'],
username: 'vben',
});
await this.addItem('users', {
id: 1,
password: hashPassword,
realName: 'Admin',
roles: ['admin'],
username: 'admin',
});
await this.addItem('users', {
id: 2,
password: hashPassword,
realName: 'Jack',
roles: ['user'],
username: 'jack',