Skip to content

Commit

Permalink
fix(wordlist):delete some unecessary codes
Browse files Browse the repository at this point in the history
  • Loading branch information
daonan233 committed Mar 22, 2024
1 parent 19f1089 commit 2533a8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 27 deletions.
13 changes: 2 additions & 11 deletions src/routers/word.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ export function toWordPage(id) {
url: `/pages/words/details?id=${id}`,
});
return;
} app.globalData.showRedirectTips = false;
}
app.globalData.showRedirectTips = false;
}
uni.navigateTo({
url: `/pages/words/details?id=${id}`,
Expand Down Expand Up @@ -68,13 +69,3 @@ export function toWordPronunciations(word) {
url: `/pages/words/pronunciations?word=${word}`,
});
}

/**
* 前往词单页面
* @param id 词单id
*/
export function toWordsPage(id) {
uni.navigateTo({
url: `/pages/tools/wordDetails?id=${id}`,
});
}
16 changes: 0 additions & 16 deletions src/services/website.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,3 @@ export async function getWordOfTheDay() {
export async function getDailyExpressions(keyword = '', page = 1, pageSize = 10) {
return request.get('/website/daily-expression', { keyword, page, pageSize });
}

/**
* 获取单个题目
* @param question 题目
* @param options 选项
* @param answer 回答
* @param explanation 解释
* @param id 题目序号
* @param visibility 是否可见
*
*/
/* export async function getOneQuiz(question, options, answer, explanation, id, visibility) {
return request.get('/quizzes/{id}', {
question, options, answer, explanation, id, visibility,
});
} */

0 comments on commit 2533a8d

Please sign in to comment.