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,9 +294,10 @@ ...@@ -293,9 +294,10 @@
// 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();
......
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