web
2025-03-18 610b299ed7c64b48ede23c2a7553c5b90988efa5
src/store/modules/user.js
@@ -24,12 +24,8 @@
    actions: {
      // 登录
      login(userInfo) {
        const userName = userInfo.userName.trim()
        const password = userInfo.password
        // const code = userInfo.code
        // const uuid = userInfo.uuid
        return new Promise((resolve, reject) => {
          login(userName, password).then(res => {
          login(userInfo).then(res => {
            setToken(res.data.token)
            this.token = res.token