gaoluyang
7 天以前 c4d25912d11ab9059f8165c25a161634bb9b5e97
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;