File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ import NavigatorPlugin from './plugins/navigator-plugin'
13
13
// import DecoderPlugin from './plugins/decoder-plugin'
14
14
import RouterPlugin from './plugins/router-plugin'
15
15
16
+ import { setVue } from './util'
17
+ setVue ( Vue )
18
+
16
19
Vue . use ( ModalPlugin )
17
20
Vue . use ( NavigatorPlugin )
18
21
// Vue.use(DecoderPlugin)
Original file line number Diff line number Diff line change 1
1
import { makeMap , once } from 'shared/util'
2
2
import { isKnownView , getViewMeta } from '../element-registry'
3
- import Vue from '../framework'
4
3
5
4
export const isReservedTag = makeMap ( 'template' , true )
6
5
6
+ let _Vue
7
+
8
+ export function setVue ( Vue ) {
9
+ _Vue = Vue
10
+ }
11
+
7
12
export const canBeLeftOpenTag = function ( el ) {
8
13
return getViewMeta ( el ) . canBeLeftOpenTag
9
14
}
@@ -42,7 +47,7 @@ const infoTrace = once(() => {
42
47
} )
43
48
44
49
export function trace ( message ) {
45
- if ( Vue . config . silent ) {
50
+ if ( _Vue && _Vue . config . silent ) {
46
51
return infoTrace ( )
47
52
}
48
53
You can’t perform that action at this time.
0 commit comments