File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,6 @@ import {
6565import { IconOptions , useDisplay , useTheme } from ' vuetify' ;
6666import { VNavigationDrawer } from ' vuetify/components' ;
6767import { AllProps } from ' @utils/props' ;
68- import { componentName } from ' @utils/globals' ;
6968import {
7069 useGetStorage ,
7170 useSetStorage ,
@@ -135,13 +134,8 @@ const display = useDisplay();
135134
136135
137136// -------------------------------------------------- Life Cycle Hooks //
138- if (settings .value .location !== ' start' && settings .value .location !== ' end' && settings .value .location !== ' left' && settings .value .location !== ' right' ) {
139- throw new Error (" [VResizeDrawer]: 'top' and 'bottom' locations are not supported." );
140- }
141-
142137onBeforeMount (() => {
143- console .log (componentName );
144- if (settings .value .name === componentName ) {
138+ if (typeof settings .value .name === ' undefined' ) {
145139 settings .value .name = String (Math .floor (Math .random () * (10000 * 10000 )));
146140 }
147141});
@@ -157,6 +151,9 @@ onUnmounted(() => {
157151
158152// -------------------------------------------------- Init //
159153function init(): void {
154+ if (settings .value .location !== ' start' && settings .value .location !== ' end' && settings .value .location !== ' left' && settings .value .location !== ' right' ) {
155+ throw new Error (" [VResizeDrawer]: 'top' and 'bottom' locations are not supported." );
156+ }
160157
161158 // Disable resize if rail is set //
162159 if (settings .value .rail ) {
You can’t perform that action at this time.
0 commit comments