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

Commit

Permalink
fix: 解决初始未拿到服务端启动信息的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
boxshadow committed May 5, 2018
1 parent d3dbb80 commit 5d5d413
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import lstore from "@/plugins/lstore/lstore.js";
let cancel;
let pending = {};
const CancelToken = axios.CancelToken;
export const limit = ~~lstore.getData("BOOTSTRAPPERS").limit || 15;
export const limit = ~~(lstore.getData("BOOTSTRAPPERS") || {}).limit || 15;
const baseURL =
process.env.NODE_ENV === "production"
? `${process.env.VUE_APP_API_HOST}/api/${process.env.VUE_APP_API_VERSION}`
Expand Down

0 comments on commit 5d5d413

Please sign in to comment.