Commit abc22a92 authored by liujiangnan's avatar liujiangnan

debug

parent 5e40f738
......@@ -149,20 +149,30 @@ new Vue({
}
},
searchWords() {
axios.get(`https://api.iplayabc.com/ciba/api/v1/word/reviews?daylimit=20&totallimit=100&uid=${this.searchQuery}`)
.then(response => {
if (response.data.code === 200) {
this.currentRows = response.data.rows;
$.ajax({
url: `https://api.iplayabc.com/ciba/api/v1/word/reviews`,
method: 'GET',
data: {
daylimit: 20,
totallimit: 100,
uid: this.searchQuery
},
dataType: 'json',
success: (response) => {
if (response.code === 200) {
this.currentRows = response.rows;
this.showControlPanel = false;
this.breadcrumb = [{ text_en: '记忆之塔' }];
} else {
this.$message.error('查询失败');
}
})
.catch(error => {
console.error('Error:', error);
},
error: (jqXHR, textStatus, errorThrown) => {
console.error('Error:', textStatus, errorThrown);
this.$message.error('查询出错');
}
});
this.searchQuery = '';
},
},
mounted() {
......
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