We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bba137b commit bd260b1Copy full SHA for bd260b1
src/api/http.js
@@ -35,6 +35,7 @@ function filterNull(o) {
35
var storeTemp=store;
36
axios.interceptors.request.use(
37
config => {
38
+ console.log(config.params)
39
if (storeTemp.state.token) {
40
// 判断是否存在token,如果存在的话,则每个http header都加上token
41
config.headers.Authorization ="Bearer "+ storeTemp.state.token;
src/views/Home.vue
@@ -106,7 +106,7 @@ export default {
106
if (urlPage) {
107
that.page = urlPage;
108
}
109
- this.$api.get("Blog/?page=" + that.page, null, r => {
+ this.$api.get("Blog/?page=" + that.page, {test:33}, r => {
110
this.list = r.data;
111
this.page = r.page;
112
this.TotalCount = r.pageCount;
0 commit comments