Skip to content

Commit c0f4271

Browse files
committed
Small fix
1 parent a49a236 commit c0f4271

File tree

2 files changed

+8
-15
lines changed

2 files changed

+8
-15
lines changed

.gitignore

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/composer.phar
22

3-
!/public/index.php
4-
!/public/.htaccess
5-
!/public/web.config
6-
!/public/robots
7-
!/public/mix-manifest.json
8-
/laravel/public
3+
!/laravel/public/index.php
4+
!/laravel/public/.htaccess
5+
!/laravel/public/web.config
6+
!/laravel/public/robots
7+
!/laravel/public/mix-manifest.json
8+
/laravel/public/*
99
/laravel/node_modules
1010
/laravel/public/hot
1111
/laravel/public/storage

coreui/src/views/users/EditUser.vue

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ export default {
5757
},
5858
update() {
5959
let self = this;
60-
axios.post('/api/users/' + self.$route.params.id + '?token=' + localStorage.getItem("api_token")),
60+
axios.post('/api/users/' + self.$route.params.id + '?token=' + localStorage.getItem("api_token"),
6161
{
6262
_method: 'PUT',
6363
name: self.name,
64-
email: self.email
64+
email: self.email,
6565
})
6666
.then(function (response) {
6767
self.message = 'Successfully updated user.';
@@ -91,12 +91,5 @@ export default {
9191
}
9292
}
9393
94-
/*
95-
items: (id) => {
96-
const user = usersData.find( user => user.id.toString() === id)
97-
const userDetails = user ? Object.entries(user) : [['id', 'Not found']]
98-
return userDetails.map(([key, value]) => {return {key: key, value: value}})
99-
},
100-
*/
10194
10295
</script>

0 commit comments

Comments
 (0)