File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 132
132
/* eslint-disable @typescript-eslint/no-unused-vars */
133
133
import {
134
134
inject ,
135
- onMounted ,
135
+ onBeforeMount ,
136
136
provide ,
137
137
reactive ,
138
138
ref ,
@@ -177,7 +177,7 @@ const selectedLibrary = ref(libraries.prism);
177
177
const selectedTheme = ref (' neon-bunny' );
178
178
179
179
180
- onMounted (() => {
180
+ onBeforeMount (() => {
181
181
library .value = store .getLocalStorage () ?? store .setLocalStorage ();
182
182
changeLibrary (library .value );
183
183
});
Original file line number Diff line number Diff line change 65
65
/* eslint-disable @typescript-eslint/no-unused-vars */
66
66
import {
67
67
inject ,
68
- onMounted ,
68
+ onBeforeMount ,
69
69
provide ,
70
70
reactive ,
71
71
ref ,
@@ -77,9 +77,6 @@ import PlaygroundPage from '@/playground/PlaygroundPage.vue';
77
77
78
78
const demoTestPage = ref (false );
79
79
80
- const highlightJsLinks = inject (' highlightJsLinks' );
81
- const prismLinks = inject (' prismLinks' );
82
-
83
80
const store = useCoreStore ();
84
81
const library = ref (' prism' );
85
82
const libraries = store .libraries ;
@@ -88,12 +85,12 @@ const highlightThemes = store.highlightThemes;
88
85
const neonBunnyThemes = store .neonBunnyThemes ;
89
86
const prismThemes = store .prismThemes ;
90
87
const selectOptions = ref (null );
91
- const selectedLibrary = ref (libraries .prism );
88
+ const selectedLibrary = ref (libraries .prismjs );
92
89
const selectedTheme = ref (' neon-bunny' );
93
90
94
91
95
- onMounted (() => {
96
- library .value = store .getLocalStorage () ?? store .setLocalStorage ();
92
+ onBeforeMount (() => {
93
+ library .value = store .getLocalStorage () ?? store .setLocalStorage (' prism ' );
97
94
changeLibrary (library .value );
98
95
});
99
96
You can’t perform that action at this time.
0 commit comments