Skip to content

Commit 2aa03c0

Browse files
committed
check finished
1 parent e62caf1 commit 2aa03c0

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

docs/cn/using-static-assets.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
### Vue 组件里 `src` 标签的使用案例
66

7-
Let's say I have a component that loads an image, but the image's path isn't known until some other task is completed. To keep things simple, let's just use a `data` variable to bind our `<img>`'s src.
7+
假设我有一个组件需要下载一个图像,但是直到一些其他任务完成后这个图像的地址才能知道。简单起见,让我们用一个 `data` 变量来绑定图像的来源。
88

99
**SomeComponent.vue**
1010

@@ -47,6 +47,6 @@ console.log(fileContents)
4747
// => "foobar"
4848
```
4949

50-
请注意,在产品阶段,默认情况下,所有文件都包含 [`asar`](https://github.com/electron/asar)因为它是被极力推荐的。因此,`static/` 文件夹中的资源只能在 `electron` 内部访问,因为 `electron` 了解此特性。由此,如果你打算将文件分发给用户,例如在外部程序中打开文件,那么,首先你需要将这些资源从应用程序复制到用户的文档空间或桌面中。从那里,你可以使用 electron 的 API [`shell.openItem()`](https://electron.atom.io/docs/api/shell/#shellopenitemfullpath) 来打开这些资源。
50+
请注意,在产品阶段,默认情况下,所有文件都包含 [`asar`](https://github.com/electron/asar)它是被极力推荐的。因此,`static/` 文件夹中的资源只能在 `electron` 内部访问,因为 `electron` 了解此特性。由此,如果你打算将文件分发给用户,例如在外部程序中打开文件,那么,首先你需要将这些资源从应用程序复制到用户的文档空间或桌面中。从那里,你可以使用 electron 的 API [`shell.openItem()`](https://electron.atom.io/docs/api/shell/#shellopenitemfullpath) 来打开这些资源。
5151

52-
这种情况的一种替代方法是配置 `electron-packager`/`electron-builder`,设置特定文件,用来 “解压缩” 在产品阶段的 `asar` 存档。electron-vue 并没有计划支持这种方法; 任何与 此 或 如何设定此事项 相关的问题将被关闭
52+
这种情况的一种替代方法是配置 `electron-packager`/`electron-builder`,设置特定文件,用来 “解压缩” 在产品阶段的 `asar` 存档。electron-vue 并没有计划支持这种方法; 任何与此或如何设定此事项相关的问题将被关闭

docs/cn/using_the_file_structure.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Using the File Structure
22

3-
electron-vue does its best to not force a particular project structure, but does try to follow common Vue & Electron practices. The following documentation describes common practices used in the original project structure.
3+
electron-vue 尽可能不强制一个特别的项目结构,但是努力去跟随通用 Vue & Electron 的实践。以下文档描述了在元项目结构中使用的通用实践。
44

5-
**If you are unfamiliar with Electron's **`renderer`** and **`main`** processes, please give the first section of the **[**Quick Start**](http://electron.atom.io/docs/tutorial/quick-start)** a good read. It explains, in detail, their differences.**
5+
**如果你对 Electron**`renderer`** **`main`**进程不熟悉,请认真阅读第一部分 **[**快速起步**](http://electron.atom.io/docs/tutorial/quick-start)**。它详尽的解释了他们的不同。**
66

7-
### [Renderer Process](renderer-process.md)
7+
### [渲染进程](renderer-process.md)
88

9-
### [Main Process](main-process.md)
9+
### [主进程](main-process.md)

docs/cn/vue_accessories.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ electron-vue 包含以下 `vue` 插件,可以使用 `vue-cli` 脚手架安装.
1313

1414
> 用于浏览器和 node.js 的基于 Promise 的 HTTP 客户端
1515
16-
如果你熟悉 `vue-resource`那么你也会感觉 `axios` 很熟悉,因为大部分 API 几乎是一样的。你可以在 `main` 进程脚本中轻松导入 `axios`,或者在 `renderer` 进程中使用 `this.$http``Vue.http`
16+
如果你熟悉 `vue-resource`那么你也会觉得 `axios` 很熟悉,因为大部分 API 几乎是一样的。你可以在 `main` 进程脚本中轻松导入 `axios`,或者在 `renderer` 进程中使用 `this.$http``Vue.http`
1717

1818
### [`vue-electron`](https://github.com/SimulatedGREG/vue-electron)
1919

0 commit comments

Comments
 (0)