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 132132/* eslint-disable @typescript-eslint/no-unused-vars */
133133import {
134134 inject ,
135- onMounted ,
135+ onBeforeMount ,
136136 provide ,
137137 reactive ,
138138 ref ,
@@ -177,7 +177,7 @@ const selectedLibrary = ref(libraries.prism);
177177const selectedTheme = ref (' neon-bunny' );
178178
179179
180- onMounted (() => {
180+ onBeforeMount (() => {
181181 library .value = store .getLocalStorage () ?? store .setLocalStorage ();
182182 changeLibrary (library .value );
183183});
Original file line number Diff line number Diff line change 6565/* eslint-disable @typescript-eslint/no-unused-vars */
6666import {
6767 inject ,
68- onMounted ,
68+ onBeforeMount ,
6969 provide ,
7070 reactive ,
7171 ref ,
@@ -77,9 +77,6 @@ import PlaygroundPage from '@/playground/PlaygroundPage.vue';
7777
7878const demoTestPage = ref (false );
7979
80- const highlightJsLinks = inject (' highlightJsLinks' );
81- const prismLinks = inject (' prismLinks' );
82-
8380const store = useCoreStore ();
8481const library = ref (' prism' );
8582const libraries = store .libraries ;
@@ -88,12 +85,12 @@ const highlightThemes = store.highlightThemes;
8885const neonBunnyThemes = store .neonBunnyThemes ;
8986const prismThemes = store .prismThemes ;
9087const selectOptions = ref (null );
91- const selectedLibrary = ref (libraries .prism );
88+ const selectedLibrary = ref (libraries .prismjs );
9289const selectedTheme = ref (' neon-bunny' );
9390
9491
95- onMounted (() => {
96- library .value = store .getLocalStorage () ?? store .setLocalStorage ();
92+ onBeforeMount (() => {
93+ library .value = store .getLocalStorage () ?? store .setLocalStorage (' prism ' );
9794 changeLibrary (library .value );
9895});
9996
You can’t perform that action at this time.
0 commit comments