Skip to content

Commit 76be4f4

Browse files
authored
Merge pull request #64 from lavyun/develop
doc: inject bundle.js globally
2 parents c191554 + 2486aac commit 76be4f4

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

doc/.vuepress/dist

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 7e58fd9e97eb1732cbacafd58ff8586d36998744
1+
Subproject commit ed71886f74674669d35e33e066da9c6aea45c839

doc/.vuepress/enhanceApp.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export default ({
2+
Vue, // VuePress 正在使用的 Vue 构造函数
3+
options, // 附加到根实例的一些选项
4+
router, // 当前应用的路由实例
5+
siteData, // 站点元数据
6+
isServer // 当前应用配置是处于 服务端渲染 或 客户端
7+
}) => {
8+
if (!isServer) {
9+
require('../../dist/mock.browser')
10+
}
11+
}

doc/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
home: true
33
heroImage: /images/logo-hor.png
4+
tagline: 已全局引入 better-mock, 打开控制台进行调试!
45
actionText: 快速上手 →
56
actionLink: /document/
67
features:

0 commit comments

Comments
 (0)