Blame view

src/api/user/userApi.js 365 Bytes
1cad66ad   wuxw   完成采购申请
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  export function getUserId() {
      const userInfo = JSON.parse(localStorage.getItem('user'))
  
      return userInfo.userId
  }
  
  export function getUserName() {
      const userInfo = JSON.parse(localStorage.getItem('user'))
  
      return userInfo.name
  }
  
  export function getUserTel() {
      const userInfo = JSON.parse(localStorage.getItem('user'))
  
      return userInfo.tel
  }