From f076287ebf67d41a40b3a8b03e803e87567f438a Mon Sep 17 00:00:00 2001 From: Deboy <55631825@qq.com> Date: Thu, 5 Jan 2017 09:53:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=A2=84=E8=A7=88=E5=9C=B0?= =?UTF-8?q?=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 17 +++++++++++------ preview.png | Bin 0 -> 7546 bytes 2 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 preview.png diff --git a/README.md b/README.md index 938a4c7..964f859 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,12 @@ -# vue-wechat-title -为Vuejs SPA设计的动态设置微信网页中标题的指令 +### 作用 +Vuejs 单页应用在iOS的微信webview(或者其他APP)中 标题不能通过 document.title = xxx 的方式修改 +该插件只为解决该问题而生 + +### 效果 (请使用微信扫描打开体验) + +![预览](./preview.png) + +直接打开: [http://vue-wechat-title.deboy.cn/](http://vue-wechat-title.deboy.cn/) ### 安装 @@ -16,14 +23,12 @@ npm install vue-wechat-title --save Vue.use(require('vue-wechat-title')) ``` -> App.vue **建议全局只使用一次该指令** +> App.vue **建议全局只使用一次该指令 标题可用wuex或者router中定义 不要多处使用!!** ```html - +
``` -> 或者直接包含(不是单页应用 也用不到这个...) - ### 欢迎提交PR \ No newline at end of file diff --git a/preview.png b/preview.png new file mode 100644 index 0000000000000000000000000000000000000000..e35857c484e8aaca56dbc080cff739f1d76da4b2 GIT binary patch literal 7546 zcmeHMc{G%N+n17@B5MlS&7hHzH4L&Frc9QQttQiA zYO)O}VkS!=NmK~$J$}FEIluG%^PcmZ=RAMB=lNsi+~>Zp?{!_@>w8_FYx!Qcw>1~w zKfuq$#U)^AVdluiwL_ir+p`;Z6A^tgjEn0a)Y1%!40r!h$cl73-kk7pz3WqvPv<$M z;Q8)$i}?k8jvds&cD5---{5Um*ww>e#lGt8_xhpagw?&{R<)MMKNxNGX1$F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