Skip to content

Commit

Permalink
new version 1.0.4 基于 mpvue 1.0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
KuangPF committed May 20, 2018
1 parent 80ddb1c commit 5c93664
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ npm run dev

### 版本日志

#### v1.0.4
* 基于 `mpvue 1.0.12`
* 增加页面通讯案例(vuex 实现)

#### v1.0.3
* 基于 `mpvue 1.0.9`
* 增加网络请求实例
Expand Down
9 changes: 4 additions & 5 deletions docs/vuex.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# vuex
vuex
# 页面通信
页面通信

## 页面通信
该示例为小程序间的页面通讯,利用 vuex 实现
该示例为小程序间的页面通讯,利用 vuex 实现。

`mpvue`框架中使用 `vuex` 与在 `vue` 中使用是一样的体验
`mpvue`框架中使用 `vuex` 与在 `vue` 中使用是一样的体验

1.建立相关的目录结构

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"flyio": "^0.5.4",
"mpvue": "^1.0.10",
"mpvue": "^1.0.12",
"vuex": "^2.3.1"
},
"devDependencies": {
Expand Down Expand Up @@ -44,7 +44,7 @@
"html-webpack-plugin": "^2.28.0",
"http-proxy-middleware": "^0.17.3",
"mpvue-loader": "^1.0.9",
"mpvue-template-compiler": "^1.0.10",
"mpvue-template-compiler": "^1.0.12",
"mpvue-webpack-target": "^1.0.0",
"opn": "^5.1.0",
"portfinder": "^1.0.13",
Expand Down
4 changes: 2 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default {
// 这个字段走 app.json
config: {
pages: [
'pages/index/index',
'^pages/index/index',
'pages/button/button',
'pages/list/list',
'pages/input/input',
Expand Down Expand Up @@ -49,7 +49,7 @@ export default {
'pages/searchbar/searchbar',

'pages/request/request',
'^pages/vuex/vuex',
'pages/vuex/vuex',
'pages/vuexPage/vuexPage',

'pages/test/test',
Expand Down

0 comments on commit 5c93664

Please sign in to comment.