@hostlink/nuxt-light 1.6.6 → 1.6.7
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/dist/module.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { useRoute } from 'vue-router';
|
|
2
|
+
import { useRoute, useRouter } from 'vue-router';
|
|
3
3
|
import { useLight, q, m } from "#imports";
|
|
4
4
|
import { useQuasar, Loading, Dialog } from 'quasar';
|
|
5
5
|
import { useI18n } from 'vue-i18n';
|
|
@@ -23,7 +23,7 @@ const tt = await q({
|
|
|
23
23
|
"copyrightName",
|
|
24
24
|
"hasFavorite",
|
|
25
25
|
{ i18nMessages: ["name", "value"] }],
|
|
26
|
-
my: ['username', 'first_name', 'last_name', 'roles', "styles", "language", "permissions", { myFavorites: ["my_favorite_id", "label", "path", "icon"] }],
|
|
26
|
+
my: ['username', 'first_name', 'last_name', 'roles', "styles", "language", "permissions", "default_page", { myFavorites: ["my_favorite_id", "label", "path", "icon"] }],
|
|
27
27
|
})
|
|
28
28
|
|
|
29
29
|
let app = tt.app
|
|
@@ -211,6 +211,7 @@ const containerStyle = computed(() => {
|
|
|
211
211
|
})
|
|
212
212
|
|
|
213
213
|
const route = useRoute()
|
|
214
|
+
const router = useRouter()
|
|
214
215
|
|
|
215
216
|
|
|
216
217
|
const onToggleFav = async () => {
|
|
@@ -268,6 +269,11 @@ const c1 = computed(() => {
|
|
|
268
269
|
return light.getColorValue(light.color)
|
|
269
270
|
})
|
|
270
271
|
|
|
272
|
+
if (route.fullPath == "/" && my.default_page) {
|
|
273
|
+
router.push(my.default_page);
|
|
274
|
+
|
|
275
|
+
}
|
|
276
|
+
|
|
271
277
|
</script>
|
|
272
278
|
|
|
273
279
|
<style scoped>
|