diff --git a/package.json b/package.json index 0f3ce59..60b8da7 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "dependencies": { "simditor": "^2.3.6", "vue": "^2.0.1", + "vue-i18n": "^4.7.1", "vue-resource": "^1.0.3", "vue-router": "^2.0.1" }, diff --git a/src/App.vue b/src/App.vue index b24c2df..a48d891 100644 --- a/src/App.vue +++ b/src/App.vue @@ -15,14 +15,16 @@ diff --git a/src/api.js b/src/api.js index c8040db..1297c6e 100644 --- a/src/api.js +++ b/src/api.js @@ -27,6 +27,18 @@ export default { } } }) + }, + // 获取用户列表 + getUserList (offset, limit) { + return ajax('admin/account/user/', 'get', { + options: { + params: { + paging: true, + offset: offset, + limit: limit + } + } + }) } } /** diff --git a/src/components/Panel.vue b/src/components/Panel.vue index 59b4cc5..240cfb3 100644 --- a/src/components/Panel.vue +++ b/src/components/Panel.vue @@ -1,6 +1,11 @@