Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
玉涛 任 committed Jun 11, 2023
1 parent f16fdbc commit c672dda
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions src/components/SendRequest.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
<button @click="Login">登录</button>
<br>
<button @click="GetToken">getToken</button>
<br>
<button @click="GetStudent">模糊查询学生</button>
</div>
</template>

Expand Down Expand Up @@ -65,4 +67,16 @@ function GetToken() {
console.log(err);
});
}
function GetStudent() {
request.post('/WebController/getStudentDetailsByFuzzyQuery', {
name: name.value,
number: number.value,
}).then((res)=>{
console.log(res);
}).catch((err)=>{
console.log(err);
return;
});
}
</script>
2 changes: 1 addition & 1 deletion src/components/SlotButton.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<button>
<!-- 插槽会被输入的文本替换掉 -->
<slot></slot> <!-- 插槽出口 -->
<slot></slot> <!-- 插槽出口,可以指定默认内容,在没有传递文本时显示默认内容 -->
</button>
</template>

Expand Down

0 comments on commit c672dda

Please sign in to comment.