Commit 7e87aa29 authored by Tang Xinwei's avatar Tang Xinwei

修复用户页面没显示战绩

parent 7cadda7e
Pipeline #31341 passed with stage
in 2 minutes and 38 seconds
......@@ -329,7 +329,7 @@
// }
// },
// // VS深渊代码成绩
// VS深渊代码成绩
// async fetchVsGenesisStats() {
// const username = querystring.parse(location.hash.slice(11)).username
// try {
......@@ -348,9 +348,10 @@
// VS卡片精灵成绩
async fetchVsDuelMonsterStats() {
const username = querystring.parse(location.hash.slice(11)).username
try {
const apiUrl = 'https://sapi.moecube.com:444/dealer3/api/user';
const url = `${apiUrl}/${this.user.username}`;
const url = `${apiUrl}/${username}`;
console.log('世界BOSS卡片精灵API: ', url);
const response = await Vue.http.get(url);
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