@hostlink/nuxt-light 1.46.6 → 1.46.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,7 +1,7 @@
1
1
  {
2
2
  "name": "light",
3
3
  "configKey": "light",
4
- "version": "1.46.6",
4
+ "version": "1.46.7",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -3,7 +3,7 @@ import "@quasar/quasar-ui-qmarkdown/dist/index.css";
3
3
  import { q } from "#imports";
4
4
  import { createI18n } from "vue-i18n";
5
5
  import createLight from "./composables/createLight.js";
6
- import { addRouteMiddleware, defineNuxtPlugin, navigateTo, useRoute } from "#app";
6
+ import { addRouteMiddleware, defineNuxtPlugin, useRoute } from "#app";
7
7
  import "./assets/main.css";
8
8
  import message_en from "./locales/en.json";
9
9
  import message_zh from "./locales/zh-hk.json";
@@ -36,8 +36,7 @@ export default defineNuxtPlugin((nuxtApp) => {
36
36
  }
37
37
  });
38
38
  if (!my) {
39
- await navigateTo("/");
40
- return false;
39
+ return;
41
40
  }
42
41
  if (!my.allowedPath) {
43
42
  return "/page_not_found?path=" + encodeURIComponent(to.fullPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostlink/nuxt-light",
3
- "version": "1.46.6",
3
+ "version": "1.46.7",
4
4
  "description": "HostLink Nuxt Light Framework",
5
5
  "repository": {
6
6
  "type": "git",