Skip to content

Commit

Permalink
refactor minor
Browse files Browse the repository at this point in the history
  • Loading branch information
tienbku committed Sep 14, 2020
1 parent 699e395 commit 40ad8f3
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 6 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,27 @@
For more detail, please visit:
> [Vue.js JWT Authentication with Vuex and Vue Router](https://bezkoder.com/jwt-vue-vuex-authentication/)
> [Using Typescript](https://bezkoder.com/vuex-typescript-jwt-auth/)
Fullstack with Spring Boot Back-end:
> [Spring Boot + Vue.js: Authentication with JWT & Spring Security Example](https://bezkoder.com/spring-boot-vue-js-authentication-jwt-spring-security/)
Fullstack with Node.js Express Back-end:
> [Node.js Express + Vue.js: JWT Authentication & Authorization example](https://bezkoder.com/node-express-vue-jwt-auth/)
Fullstack CRUD:
> [Vue.js + Node.js + Express + MySQL example](https://bezkoder.com/vue-js-node-js-express-mysql-crud-example/)
> [Vue.js + Node.js + Express + PostgreSQL example](https://bezkoder.com/vue-node-express-postgresql/)
> [Vue.js + Node.js + Express + MongoDB example](https://bezkoder.com/vue-node-express-mongodb-mevn-crud/)
> [Vue.js + Spring Boot + MySQL/PostgreSQL example](https://bezkoder.com/spring-boot-vue-js-crud-example/)
> [Vue.js + Spring Boot + MongoDB example](https://bezkoder.com/spring-boot-vue-mongodb/)
> [Vue.js + Django example](https://bezkoder.com/django-vue-js-rest-framework/)
## Note:
Open `src/services/auth-header.js` and modify `return` statement for appropriate back-end.

Expand Down
2 changes: 1 addition & 1 deletion src/views/BoardAdmin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default {
},
error => {
this.content =
(error.response && error.response.data) ||
(error.response && error.response.data && error.response.data.message) ||
error.message ||
error.toString();
}
Expand Down
2 changes: 1 addition & 1 deletion src/views/BoardModerator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default {
},
error => {
this.content =
(error.response && error.response.data) ||
(error.response && error.response.data && error.response.data.message) ||
error.message ||
error.toString();
}
Expand Down
2 changes: 1 addition & 1 deletion src/views/BoardUser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default {
},
error => {
this.content =
(error.response && error.response.data) ||
(error.response && error.response.data && error.response.data.message) ||
error.message ||
error.toString();
}
Expand Down
2 changes: 1 addition & 1 deletion src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default {
},
error => {
this.content =
(error.response && error.response.data) ||
(error.response && error.response.data && error.response.data.message) ||
error.message ||
error.toString();
}
Expand Down
2 changes: 1 addition & 1 deletion src/views/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default {
error => {
this.loading = false;
this.message =
(error.response && error.response.data) ||
(error.response && error.response.data && error.response.data.message) ||
error.message ||
error.toString();
}
Expand Down
2 changes: 1 addition & 1 deletion src/views/Register.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default {
},
error => {
this.message =
(error.response && error.response.data) ||
(error.response && error.response.data && error.response.data.message) ||
error.message ||
error.toString();
this.successful = false;
Expand Down
5 changes: 5 additions & 0 deletions vue.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
devServer: {
port: 8081
}
}

0 comments on commit 40ad8f3

Please sign in to comment.