spring
4 天以前 4e64eeb2a807adc9153fd9cd61b498b99c1f6f2c
src/store/modules/user.js
@@ -50,6 +50,7 @@
            this.id = user.userId
            this.name = user.userName
            this.avatar = avatar
            this.currentFactoryName = user.currentFactoryName
            this.nickName = user.nickName
            resolve(res)
          }).catch(error => {
@@ -87,7 +88,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)