reflect rename changes

This commit is contained in:
Axolotle 2020-07-27 21:53:18 +02:00
parent 3371bb3251
commit 2e53898aa3
4 changed files with 5 additions and 5 deletions

View file

@ -1,6 +1,6 @@
import Home from './views/Home'
import Login from './views/Login'
import { UserList, UserCreate, User, UserEdit } from './views/user'
import { UserList, UserCreate, UserInfo, UserEdit } from './views/user'
const routes = [
{ name: 'home', path: '/', component: Home },
@ -27,7 +27,7 @@ const routes = [
{
name: 'user-info',
path: '/users/:name',
component: User,
component: UserInfo,
props: true,
meta: {
breadcrumb: [

View file

@ -204,11 +204,11 @@ export default {
if (value.length > 0) data[key] = value
}
// FIXME move to utils
function arrayDiff (arr1 = [], arr2 = []) {
return arr1.filter(item => ((arr2.indexOf(item) === -1) && (item !== '')))
}
console.log(data)
this.$store.dispatch('PUT',
{ uri: 'users', data, param: this.user.username, storeKey: 'users_details' }
).then(() => {

View file

@ -82,7 +82,7 @@
<script>
export default {
name: 'User',
name: 'UserInfo',
props: {
name: {
type: String,

View file

@ -1,4 +1,4 @@
export { default as UserList } from './UserList'
export { default as UserCreate } from './UserCreate'
export { default as User } from './User'
export { default as UserInfo } from './UserInfo'
export { default as UserEdit } from './UserEdit'