zhangwencui
2026-06-15 61a2db936dcbc3d5aebe8ff850bcaab76e3b3785
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;