Commit 6f1e23d0 by zhanghaozhe

ai-test

parent 9d34350f
import React, { Component } from 'react'
import { HeaderBar } from '@/common'
import { http } from '@/utils'
import { getParam, http } from '@/utils'
import './index.scss'
import QRCode from 'qrcode'
import html2canvas from 'html2canvas'
......@@ -89,7 +89,7 @@ class scoreReport extends Component {
}
handleFetchInfo = (index) => {
http.get(`${API.home}/sys/at/user_score/${index}`).then(res => {
http.get(`${API.home}/sys/at/user_score/${index}/${getParam('uid') ? getParam('uid') : 0}`).then(res => {
const {code, data} = res.data
if (code === 200) {
this.setState({
......
......@@ -98,7 +98,7 @@ class Scores extends Component {
}
getUserScores = (type) => {
http.get(`${API.home}/sys/at/user_score/${type}`)
http.get(`${API.home}/sys/at/user_score/${type}/0`)
.then(res => {
const {code, msg, data} = res.data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment