From 0df2a679f0b319531b680ee86ebc876d0ba10fa0 Mon Sep 17 00:00:00 2001 From: Nesswit Date: Wed, 6 Sep 2017 23:39:17 +0900 Subject: [PATCH] Change vue-resource to axios vue-resource has some issue on handling json data without http header. See #16, but it doesn't related syntex error handling. --- source/package.json | 2 +- source/src/components/chat/Chat.vue | 57 +++++++------ source/src/components/list/List.vue | 31 ++++--- source/src/main.js | 2 - source/yarn.lock | 127 ++++------------------------ 5 files changed, 66 insertions(+), 153 deletions(-) diff --git a/source/package.json b/source/package.json index b7903a5..91e860f 100644 --- a/source/package.json +++ b/source/package.json @@ -11,13 +11,13 @@ "lint": "eslint --ext .js,.vue src" }, "dependencies": { + "axios": "^0.16.2", "clipboard": "^1.7.1", "hangul-js": "^0.2.4", "lodash": "^4.17.4", "spectre.css": "^0.2.14", "vue": "^2.3.3", "vue-lazyload": "^1.0.6", - "vue-resource": "^1.3.4", "vue-router": "^2.6.0", "vue2-animate": "^1.0.4" }, diff --git a/source/src/components/chat/Chat.vue b/source/src/components/chat/Chat.vue index c6d6567..c032892 100755 --- a/source/src/components/chat/Chat.vue +++ b/source/src/components/chat/Chat.vue @@ -6,6 +6,7 @@