Skip to content

Commit 0adfefd

Browse files
committed
refactor minor
1 parent 699e395 commit 0adfefd

File tree

8 files changed

+42
-8
lines changed

8 files changed

+42
-8
lines changed

README.md

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,43 @@
11
# Vue.js JWT Authentication with Vuex and Vue Router
22

3-
For more detail, please visit:
4-
> [Vue.js JWT Authentication with Vuex and Vue Router](https://bezkoder.com/jwt-vue-vuex-authentication/)
3+
For instruction, please visit:
4+
> [Vue 2 JWT Authentication with Vuex and Vue Router](https://bezkoder.com/jwt-vue-vuex-authentication/)
5+
6+
> [Using Typescript](https://bezkoder.com/vuex-typescript-jwt-auth/)
7+
8+
> [Vue 3 JWT Authentication with Vuex and Vue Router](https://bezkoder.com/vue-3-authentication-jwt/)
9+
10+
More Practice:
11+
> [Vue.js CRUD App with Vue Router & Axios](https://bezkoder.com/vue-js-crud-app/)
12+
13+
> [Vue Pagination with Axios and API example](https://bezkoder.com/vue-pagination-axios/)
14+
15+
> [Vue File Upload example using Axios](https://bezkoder.com/vue-axios-file-upload/)
516
617
Fullstack with Spring Boot Back-end:
718
> [Spring Boot + Vue.js: Authentication with JWT & Spring Security Example](https://bezkoder.com/spring-boot-vue-js-authentication-jwt-spring-security/)
819
920
Fullstack with Node.js Express Back-end:
1021
> [Node.js Express + Vue.js: JWT Authentication & Authorization example](https://bezkoder.com/node-express-vue-jwt-auth/)
1122
23+
Fullstack CRUD:
24+
> [Vue.js + Node.js + Express + MySQL example](https://bezkoder.com/vue-js-node-js-express-mysql-crud-example/)
25+
26+
> [Vue.js + Node.js + Express + PostgreSQL example](https://bezkoder.com/vue-node-express-postgresql/)
27+
28+
> [Vue.js + Node.js + Express + MongoDB example](https://bezkoder.com/vue-node-express-mongodb-mevn-crud/)
29+
30+
> [Vue.js + Spring Boot + MySQL/PostgreSQL example](https://bezkoder.com/spring-boot-vue-js-crud-example/)
31+
32+
> [Vue.js + Spring Boot + MongoDB example](https://bezkoder.com/spring-boot-vue-mongodb/)
33+
34+
> [Vue.js + Django example](https://bezkoder.com/django-vue-js-rest-framework/)
35+
36+
Integration (run back-end & front-end on same server/port)
37+
> [Integrate Vue.js with Spring Boot](https://bezkoder.com/integrate-vue-spring-boot/)
38+
39+
> [Integrate Vue App with Node.js Express](https://bezkoder.com/serve-vue-app-express/)
40+
1241
## Note:
1342
Open `src/services/auth-header.js` and modify `return` statement for appropriate back-end.
1443

src/views/BoardAdmin.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default {
2323
},
2424
error => {
2525
this.content =
26-
(error.response && error.response.data) ||
26+
(error.response && error.response.data && error.response.data.message) ||
2727
error.message ||
2828
error.toString();
2929
}

src/views/BoardModerator.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default {
2323
},
2424
error => {
2525
this.content =
26-
(error.response && error.response.data) ||
26+
(error.response && error.response.data && error.response.data.message) ||
2727
error.message ||
2828
error.toString();
2929
}

src/views/BoardUser.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default {
2323
},
2424
error => {
2525
this.content =
26-
(error.response && error.response.data) ||
26+
(error.response && error.response.data && error.response.data.message) ||
2727
error.message ||
2828
error.toString();
2929
}

src/views/Home.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default {
2323
},
2424
error => {
2525
this.content =
26-
(error.response && error.response.data) ||
26+
(error.response && error.response.data && error.response.data.message) ||
2727
error.message ||
2828
error.toString();
2929
}

src/views/Login.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export default {
9090
error => {
9191
this.loading = false;
9292
this.message =
93-
(error.response && error.response.data) ||
93+
(error.response && error.response.data && error.response.data.message) ||
9494
error.message ||
9595
error.toString();
9696
}

src/views/Register.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export default {
101101
},
102102
error => {
103103
this.message =
104-
(error.response && error.response.data) ||
104+
(error.response && error.response.data && error.response.data.message) ||
105105
error.message ||
106106
error.toString();
107107
this.successful = false;

vue.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
devServer: {
3+
port: 8081
4+
}
5+
}

0 commit comments

Comments
 (0)