UNPKG
egg-view-vue-ssr
Version:
latest (3.3.3)
next (3.2.1)
3.3.3
3.3.2
3.3.1
3.3.0
3.2.1
3.2.0
3.1.3
3.1.2
3.1.1
3.1.0
3.0.8
3.0.7
3.0.6
3.0.5
3.0.4
3.0.3
3.0.2
3.0.1
3.0.0
2.1.1
2.1.0
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.0.0
0.2.0
0.1.1
0.1.0
0.0.4
0.0.3
0.0.2
0.0.1
vue server side render solution for egg
github.com/hubcarl/egg-view-vue-ssr
hubcarl/egg-view-vue-ssr
egg-view-vue-ssr
/
app
/
extend
/
application.js
15 lines
(11 loc)
•
255 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
'use strict'
;
const
Engine
=
require
(
'../../lib/engine'
);
const
VUE_ENGINE
=
Symbol
(
'Application#vue'
);
module
.
exports
= {
get
vue
() {
if
(!
this
[
VUE_ENGINE
]) {
this
[
VUE_ENGINE
] =
new
Engine
(
this
); }
return
this
[
VUE_ENGINE
]; }, };