Skip to content

Commit

Permalink
Merge branch 'release/2.0.0-beta9.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
purocean committed Sep 30, 2019
2 parents 4e365c5 + 3544ba0 commit 8da200e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -148,7 +148,7 @@ yarn run start
## 更新日志
[最新发布](https://github.com/purocean/yn/releases)

### [v2.0.0-beta9.1](https://github.com/purocean/yn/releases/tag/v2.0.0-beta9.1) 2019-09-16
### [v2.0.0-beta9.2](https://github.com/purocean/yn/releases/tag/v2.0.0-beta9.2) 2019-09-30
1. 增加 2.0 计划
1. Electron 打包
1. 增加 HTML 小工具渲染
Expand Down
7 changes: 6 additions & 1 deletion frontend/src/components/Preview.vue
Expand Up @@ -346,7 +346,12 @@ export default {
convertFile (type) {
MarkdownItECharts.preparePrint()
const baseUrl = location.origin + location.pathname.substring(0, location.pathname.lastIndexOf('/')) + '/'
let baseUrl = location.origin + location.pathname.substring(0, location.pathname.lastIndexOf('/')) + '/'
// Windows 下偶尔解析 localhost 很耗时,这里直接用 ip 代替
if (/^(http|https):\/\/localhost/i.test(baseUrl)) {
baseUrl = baseUrl.replace(/localhost/i, '127.0.0.1')
}
this.convert = {
fileName: (this.fileName || '未命名') + `.${type}`,
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "yank.note.yang",
"version": "2.0.0-beta9.1",
"version": "2.0.0-beta9.2",
"description": "Yank-Note",
"main": "dist/app.js",
"license": "Apache-2.0",
Expand Down

0 comments on commit 8da200e

Please sign in to comment.