Commit 0517ee8f authored by Tang Xinwei's avatar Tang Xinwei

Merge branch 'dealer_season2_changes' into 'master'

修复用户页面没显示战绩

See merge request !10
parents d8579224 7e87aa29
Pipeline #31343 passed with stages
in 2 minutes and 25 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