gaoluyang
2 天以前 0e053f43fe591be3e0e92e3cfb4ad90d660b0546
src/store/modules/user.ts
@@ -33,7 +33,7 @@
      return new Promise((resolve, reject) => {
        loginCheckFactory(userName, password, factoryId)
          .then((res: any) => {
            const token = res.token || res.data?.token;
            const token = res.token || (res.data && res.data.token);
            if (token) {
              setToken(token);
              this.token = token;