gaoluyang
4 天以前 60916ec07b71d194e72bf938d5c2fc6a256e6293
src/store/modules/user.js
@@ -50,7 +50,9 @@
            this.id = user.userId
            this.name = user.userName
            this.avatar = avatar
            this.currentFactoryName = user.currentFactoryName
            this.nickName = user.nickName
            this.currentDeptId = user.tenantId
            resolve(res)
          }).catch(error => {
            reject(error)
@@ -87,7 +89,7 @@
      loginCheckFactory(userInfo) {
        const username = userInfo.username.trim()
        const password = userInfo.password
        const factoryId = userInfo.factoryId
        const factoryId = userInfo.currentFatoryId
        return new Promise((resolve, reject) => {
          loginCheckFactory(username, password, factoryId).then(res => {
            setToken(res.token)