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

Commit

Permalink
fix(find): 当附近没有用户时服务器返回错误的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
mutoe committed Sep 29, 2018
1 parent e05365f commit 45cf5fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/stores/module/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as api from "@/api/user";

const actions = {
async getUserList({ commit }, payload) {
if (!payload.id) return Promise.resolve([]);
const { data } = await api.getUserList(payload);
for (const user of data) {
commit("SAVE_USER", user, { root: true });
Expand Down

0 comments on commit 45cf5fd

Please sign in to comment.