File tree 1 file changed +4
-7
lines changed
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,6 @@ import {
65
65
import { IconOptions , useDisplay , useTheme } from ' vuetify' ;
66
66
import { VNavigationDrawer } from ' vuetify/components' ;
67
67
import { AllProps } from ' @utils/props' ;
68
- import { componentName } from ' @utils/globals' ;
69
68
import {
70
69
useGetStorage ,
71
70
useSetStorage ,
@@ -135,13 +134,8 @@ const display = useDisplay();
135
134
136
135
137
136
// -------------------------------------------------- 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
-
142
137
onBeforeMount (() => {
143
- console .log (componentName );
144
- if (settings .value .name === componentName ) {
138
+ if (typeof settings .value .name === ' undefined' ) {
145
139
settings .value .name = String (Math .floor (Math .random () * (10000 * 10000 )));
146
140
}
147
141
});
@@ -157,6 +151,9 @@ onUnmounted(() => {
157
151
158
152
// -------------------------------------------------- Init //
159
153
function 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
+ }
160
157
161
158
// Disable resize if rail is set //
162
159
if (settings .value .rail ) {
You can’t perform that action at this time.
0 commit comments