Skip to content

Commit

Permalink
fix: kungfu update
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaviilee committed Nov 1, 2023
1 parent c64aeea commit dd7cce6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/service/skill.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ function getAll(xf) {
}

// 获取特殊技能分组
function getSpecialGroup(){
return $cms().get('/api/cms/pvp/collection/group');
function getSpecialGroup(params){
return $cms().get('/api/cms/pvp/collection/group', { params });
}

// 获取特殊技能
Expand Down
3 changes: 2 additions & 1 deletion src/views/Kungfu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export default {
const params = {
group: this.type,
client: this.client,
__no_page: 1,
};
if (this.school !== "") {
params.school = this.school;
Expand All @@ -118,7 +119,7 @@ export default {
});
},
loadGroup() {
getSpecialGroup().then((res) => {
getSpecialGroup({ __need_item: 0 }).then((res) => {
this.types = res.data.data
.map((item) => {
return {
Expand Down

0 comments on commit dd7cce6

Please sign in to comment.