Commit 1901ebc7 authored by 神楽坂玲奈's avatar 神楽坂玲奈

fix userinfo

parent e6f24dd2
Pipeline #25434 passed with stages
in 1 minute and 33 seconds
......@@ -167,6 +167,7 @@
import { mapGetters } from 'vuex'
import moment from 'moment'
import Vue from "vue";
var rankTable;
var rankTable2;
......@@ -293,12 +294,13 @@
// VS发牌姬成绩
async fetchVsDealerStats() {
const username = querystring.parse(location.hash.slice(11)).username
try {
const apiUrl = 'https://sapi.moecube.com:444/dealer/api/user';
const url = `${apiUrl}/${this.user.username}`;
const url = `${apiUrl}/${username}`;
console.log('发牌姬API', url);
const response = await Vue.http.get(url);
const jsonData = await response.json();
const jsonData = await response.json();
console.log('发牌姬response', jsonData.data);
return jsonData.data;
} catch (error) {
......@@ -479,7 +481,7 @@
margin-bottom: 20px;
margin-top: -30px;
}
.scroll {
width: 250%;
}
......
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