From e5deeed3d223443fcfb910c38ce222be2e4a96fb Mon Sep 17 00:00:00 2001 From: joehe Date: Wed, 15 Nov 2017 09:43:02 +0800 Subject: [PATCH] v0.1.1 --- README.md | 6 ++++-- build/github/latest-mac.json | 6 +++--- package.json | 2 +- src/renderer/main.js | 13 ++++++++++++- src/renderer/views/Home.vue | 4 ++-- 5 files changed, 22 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index e028889..5a8ff86 100644 --- a/README.md +++ b/README.md @@ -59,13 +59,15 @@ npm run lint - [x] F 修复 侧边栏分组人数在切换用户后不对 - 分组对应用户 v0.1.0 - [x] N 新增 自定义 图灵key v0.1.0 - [x] N 新增 心跳图标 v0.1.0 -- [x] F 修复 导出好友点取消按键弹出错误提示框 +- [x] F 修复 导出好友取消键弹错误框 v0.1.1 +- [x] F 修复 选择好友后,搜索框清空 v0.1.1 +- [x] N 新增 版本更新项列表 v0.1.1 ## 依赖 This project was generated with [electron-vue](https://github.com/SimulatedGREG/electron-vue)@[de85f81](https://github.com/SimulatedGREG/electron-vue/tree/de85f81890c01500113738bfe57bef136f9fbf52) using [vue-cli](https://github.com/vuejs/vue-cli). Documentation about the original structure can be found [here](https://simulatedgreg.gitbooks.io/electron-vue/content/index.html). ## 相关项目 https://github.com/Urinx/WeixinBot ## 参考 -http://blog.csdn.net/mengfanzhong/article/details/53190083 +https://segmentfault.com/a/1190000004471678 ## License MIT diff --git a/build/github/latest-mac.json b/build/github/latest-mac.json index 072c2a1..f9461fc 100644 --- a/build/github/latest-mac.json +++ b/build/github/latest-mac.json @@ -1,5 +1,5 @@ { - "version": "0.1.0", - "releaseDate": "2017-11-09T03:47:40.668Z", - "url": "https://github.com/joehecn/j/releases/download/v0.1.0/j-0.1.0-mac.zip" + "version": "0.1.1", + "releaseDate": "2017-11-15T01:39:01.174Z", + "url": "https://github.com/joehecn/j/releases/download/v0.1.1/j-0.1.1-mac.zip" } diff --git a/package.json b/package.json index dd0dd49..5e937c3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "j", - "version": "v0.1.0", + "version": "v0.1.1", "author": "joehe ", "description": "An electron-vue project", "main": "./dist/electron/main.js", diff --git a/src/renderer/main.js b/src/renderer/main.js index 464568c..b7f5520 100644 --- a/src/renderer/main.js +++ b/src/renderer/main.js @@ -48,10 +48,21 @@ Window.prototype.joehe_global_js_method = (url) => { // 检查版本 getReleases().then(res => { if (res.tag_name !== version) { + let msgArr = [] + const arr = res.body.split('[x]') + const len = arr.length + + for (let i = 1; i < len; i++) { + msgArr.push(`- ${arr[i].split(res.tag_name)[0]}`) + } + + const msgBody = msgArr.join('
') + + const message = `请点击这里查看详情和下载

${msgBody}

` Notification({ title: `已发布新版本 ${res.tag_name}`, dangerouslyUseHTMLString: true, - message: `请点击这里查看详情和下载`, + message, duration: 0 }) } diff --git a/src/renderer/views/Home.vue b/src/renderer/views/Home.vue index cd51b98..36b0faf 100644 --- a/src/renderer/views/Home.vue +++ b/src/renderer/views/Home.vue @@ -136,7 +136,7 @@ export default { newgroupname: '', selected: -1, activeName: 'first', - searchText: '', + searchText: '', // 搜索框 message: '', sending: false, imgsending: false, @@ -367,7 +367,7 @@ export default { _item.md5[item.md5] = !item.checked this.$set(this.groups, this.selected, _item) window.localStorage[this.$store.state.user.Uin] = JSON.stringify(this.groups) - this.searchText = '' + // this.searchText = '' 不自动清空,连选比较有效率 }, sendMessage () {