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