, username: $username) {
                        success
                        token
                    }
                 }`,
                {
                    'username': username,
                    'password': password
                }
            )

            if (res.loginUser.success === true) {
                setToken(res.loginUser.token)
                window.location = '/public_post.html'
            } else {
                alert('账户或者密码错误')
            }
            r