@asd20/ui 3.2.563 → 3.2.565
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -200,18 +200,40 @@ export default {
|
|
|
200
200
|
|
|
201
201
|
// this.tabs ? this.tabsList[0].hash : 'one',
|
|
202
202
|
},
|
|
203
|
+
// created() {
|
|
204
|
+
// if (typeof window !== 'undefined' && this.tabsList.length) {
|
|
205
|
+
// window.location.hash = this.tabsList[0].hash
|
|
206
|
+
// console.log(this.tabsList[0].hash)
|
|
207
|
+
// if (
|
|
208
|
+
// typeof window !== 'undefined' &&
|
|
209
|
+
// window.location.hash.indexOf('#tab-') > -1
|
|
210
|
+
// ) {
|
|
211
|
+
// this.tab = window.location.hash
|
|
212
|
+
// console.log(window.location.hash)
|
|
213
|
+
// }
|
|
214
|
+
// window.focus(this.tab)
|
|
215
|
+
// }
|
|
216
|
+
// },
|
|
217
|
+
|
|
203
218
|
created() {
|
|
204
|
-
if (
|
|
205
|
-
window
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
)
|
|
219
|
+
if (
|
|
220
|
+
typeof window !== 'undefined' &&
|
|
221
|
+
window.location.hash.indexOf('#tab-') > -1
|
|
222
|
+
) {
|
|
223
|
+
this.tab = window.location.hash
|
|
224
|
+
console.log('#tab-check=', window.location.hash)
|
|
225
|
+
} else {
|
|
226
|
+
if (typeof window !== 'undefined' && this.tabsList.length) {
|
|
227
|
+
window.location.hash = this.tabsList[0].hash
|
|
210
228
|
this.tab = window.location.hash
|
|
229
|
+
console.log('forced tab =', this.tabsList[0].hash)
|
|
211
230
|
}
|
|
212
|
-
window.focus(this.tab)
|
|
213
231
|
}
|
|
214
232
|
},
|
|
233
|
+
mounted() {
|
|
234
|
+
window.focus(this.tab)
|
|
235
|
+
},
|
|
236
|
+
|
|
215
237
|
computed: {
|
|
216
238
|
pageHeaderContent() {
|
|
217
239
|
return {
|