Skip to content
This repository has been archived by the owner on Nov 15, 2018. It is now read-only.

Commit

Permalink
fix(*): 修正 api limit 包引用地址
Browse files Browse the repository at this point in the history
  • Loading branch information
mutoe committed Oct 10, 2018
1 parent 2503560 commit ff798d6
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 12 deletions.
3 changes: 2 additions & 1 deletion src/api/bootstrappers.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import api from "./api.js";
import api from "./api";
import lstore from "@/plugins/lstore";
import location from "@/util/location.js";

/**
* 获取热门城市列表
* @return {Promise}
Expand Down
2 changes: 1 addition & 1 deletion src/api/currency.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import api from "./api.js";
import api from "./api";

/**
* 获取积分配置信息
Expand Down
3 changes: 2 additions & 1 deletion src/api/feeds.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import api, { limit } from "./api.js";
import api from "./api";
import { limit } from "./index";

/**
* 定义动态对象
Expand Down
3 changes: 2 additions & 1 deletion src/api/group.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import api, { limit } from "./api.js";
import api from "./api";
import { limit } from "./index";

/**
* 定义圈子对象
Expand Down
11 changes: 7 additions & 4 deletions src/api/message.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import api, { get, limit } from "./api.js";
import api from "./api";
import { limit } from "./index";

// 获取系统通知
export function getNotifications(offset = 0) {
return get(`/user/notifications`, {
offset,
limit
return api.get(`/user/notifications`, {
params: {
offset,
limit
}
});
}

Expand Down
3 changes: 2 additions & 1 deletion src/api/news.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import api, { limit } from "./api.js";
import api from "./api";
import { limit } from "./index";

/**
* 定义资讯对象
Expand Down
3 changes: 2 additions & 1 deletion src/api/ranks.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import api, { limit } from "./api.js";
import api from "./api";
import { limit } from "./index";

/**
* 获取全站排行榜
Expand Down
2 changes: 1 addition & 1 deletion src/api/user.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import api from "./api";
import store from "@/stores";
import api from "./api.js";
import $Message from "@/plugins/message-box";
import lstore from "@/plugins/lstore/lstore.js";

Expand Down
2 changes: 1 addition & 1 deletion src/api/wallet.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import api from "./api.js";
import api from "./api";

/**
* 获取钱包配置信息
Expand Down

0 comments on commit ff798d6

Please sign in to comment.