gaoluyang
2026-06-16 2f58128ac3b1c025a32f64016328992bf9bf5b48
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;