From 69a16c9c3cfad97cc20788174d8d02e64e90cbca Mon Sep 17 00:00:00 2001
From: lsy <18332763730@163.com>
Date: Sat, 23 Dec 2017 22:51:07 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0vuex=E6=9B=B4=E6=8D=A2ajax?=
=?UTF-8?q?=E8=AF=B7=E6=B1=82=E6=96=B9=E6=B3=95=EF=BC=8C=E8=A7=A3=E5=86=B3?=
=?UTF-8?q?springmv=E5=90=8E=E5=8F=B0=E8=8E=B7=E5=8F=96=E4=B8=8D=E5=88=B0?=
=?UTF-8?q?=E5=8F=82=E6=95=B0=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ms-web/README.md | 14 ++++++++++
ms-web/package.json | 3 ++-
ms-web/src/components/SignIn.vue | 30 +++++++++++++--------
ms-web/src/main.js | 45 ++++++++++++++++++++++++++++++--
4 files changed, 78 insertions(+), 14 deletions(-)
diff --git a/ms-web/README.md b/ms-web/README.md
index 2ca9fbb..f2cfdea 100644
--- a/ms-web/README.md
+++ b/ms-web/README.md
@@ -49,4 +49,18 @@ module.exports = {
最后,在代码中的 style 标签中 加上 lang="less" 属性即可~
+
+#安装vuex
+
+#安装axios
+npm install axios -S
+修改原型链
+import axios from 'axios'
+Vue.prototype.$http = axios
+#安装vue-devtools
+
+#关于部署使用nodejs的http-server模块进行部署
+npm install http-server
+cd dist
+http-server -p 80
```
diff --git a/ms-web/package.json b/ms-web/package.json
index fec24c5..9dacdfc 100644
--- a/ms-web/package.json
+++ b/ms-web/package.json
@@ -14,9 +14,10 @@
"build": "node build/build.js"
},
"dependencies": {
+ "axios": "^0.17.1",
"element-ui": "^2.0.8",
"vue": "^2.5.2",
- "vue-resource": "^1.3.5",
+ "vue-axios": "^2.0.2",
"vue-router": "^3.0.1",
"vuex": "^3.0.1"
},
diff --git a/ms-web/src/components/SignIn.vue b/ms-web/src/components/SignIn.vue
index dfdf85f..b42f3df 100644
--- a/ms-web/src/components/SignIn.vue
+++ b/ms-web/src/components/SignIn.vue
@@ -2,16 +2,16 @@
- micro fast 后台管理系统
+ ms 分布式系统后台管理
-
+
-
+
@@ -19,32 +19,40 @@
-
+
登录
- 注册
+ 注册