保誠-保戶業務員媒合平台
Mila
2021-12-23 9de780116757fc0025b6bd47b0957af22bf2829b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { Role } from "../models/enum/Role";
 
class AuthService {
 
  isAdminLogin(): boolean {
    return localStorage.getItem('current_role') === Role.ADMIN;
  }
 
  isUserLogin(): boolean {
    return localStorage.getItem('current_role') === Role.USER;
  }
}
 
export default new AuthService();