@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 +1 -1
- package/dist/runtime/plugin.js +2 -3
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/runtime/plugin.js
CHANGED
|
@@ -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,
|
|
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
|
-
|
|
40
|
-
return false;
|
|
39
|
+
return;
|
|
41
40
|
}
|
|
42
41
|
if (!my.allowedPath) {
|
|
43
42
|
return "/page_not_found?path=" + encodeURIComponent(to.fullPath);
|