zhouwx
2024-04-19 4502510c1763590b3d90d9dcc74a99f8f371642f
src/store/modules/user.js
@@ -20,8 +20,9 @@
        const password = userInfo.password
        const code = userInfo.code
        const uuid = userInfo.uuid
        const identity = userInfo.identity
        return new Promise((resolve, reject) => {
          login(username, password, code, uuid).then(res => {
          login(username, password, code, uuid, identity).then(res => {
            setToken(res.data.token)
            Cookies.set('userInfo',JSON.stringify(res.data))
            this.token = res.data.token