UNPKG
use-on-demand
Version:
latest (1.2.84)
1.2.84
1.2.83
1.2.81
1.2.80
1.2.79
1.2.77
1.2.76
1.2.75
1.2.58
1.2.57
1.2.56
1.2.55
1.2.53
1.2.51
1.2.50
1.2.49
1.2.48
1.2.46
1.2.44
1.2.43
1.2.42
1.2.41
1.2.40
1.2.37
1.2.36
1.2.35
1.2.34
1.2.33
1.2.32
1.2.31
1.2.30
1.2.29
1.2.28
1.2.27
1.2.26
1.2.25
1.2.23
1.2.22
1.2.21
1.2.20
1.2.19
1.2.18
1.2.17
1.2.16
1.2.15
1.2.13
1.2.12
1.2.11
1.2.10
1.2.9
1.2.8
1.2.7
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.8
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.0.81
1.0.80
1.0.79
1.0.74
1.0.73
1.0.72
1.0.71
1.0.70
1.0.69
1.0.68
1.0.63
1.0.62
1.0.61
1.0.60
1.0.59
1.0.58
1.0.57
1.0.56
1.0.55
1.0.54
1.0.53
1.0.52
1.0.51
1.0.50
1.0.49
1.0.48
1.0.47
1.0.46
1.0.45
1.0.44
1.0.43
1.0.42
1.0.41
1.0.39
1.0.38
1.0.37
1.0.36
1.0.35
1.0.34
1.0.33
1.0.32
1.0.31
1.0.30
1.0.28
1.0.27
1.0.26
1.0.25
1.0.24
1.0.23
1.0.22
1.0.21
1.0.20
1.0.19
1.0.18
1.0.17
1.0.16
1.0.15
1.0.14
1.0.13
1.0.12
1.0.11
1.0.10
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.0
按需使用的代码工具仓库。
github.com/hanshou101/use-on-demand
hanshou101/use-on-demand
use-on-demand
/
lib
/
sources
/
.vuepress
/
enhanceApp.js
18 lines
(16 loc)
•
515 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/** * 做一些应用级别的配置。 * 1.当该文件存在的时候,会被导入到应用内部。 */
// 使用异步函数也是可以的
export
default
( { Vue,
// VuePress 正在使用的 Vue 构造函数
options,
// 附加到根实例的一些选项
router,
// 当前应用的路由实例
siteData,
// 站点元数据
isServer
// 当前应用配置是处于 服务端渲染 或 客户端
} )
=> {
// ...做一些其他的应用级别的优化
}