@mythpe/quasar-ui-qui 0.1.67 → 0.1.68
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
|
@@ -34,15 +34,14 @@ export const useMyth = () => {
|
|
|
34
34
|
number = parseInt(number.toString())
|
|
35
35
|
route = route || $route
|
|
36
36
|
const defaultValue = ''
|
|
37
|
-
// Not
|
|
37
|
+
// Not route
|
|
38
38
|
// No page title
|
|
39
39
|
if (!route) {
|
|
40
40
|
return defaultValue
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
const routePath = route?.path?.toString() || null
|
|
43
|
+
const routePath = route?.path?.toString()?.replace(/^\//, '').replace(/\//g, '.') || null
|
|
44
44
|
const routeName = route?.name?.toString() || null
|
|
45
|
-
|
|
46
45
|
// # Not is Route, No page title
|
|
47
46
|
if (!routePath || !routeName) {
|
|
48
47
|
return defaultValue
|
|
@@ -55,6 +54,7 @@ export const useMyth = () => {
|
|
|
55
54
|
}
|
|
56
55
|
const pluralize = Str.pascalCase(lodash.pluralize(lastRouteName))
|
|
57
56
|
const singular = Str.pascalCase(lodash.singularize(lastRouteName))
|
|
57
|
+
|
|
58
58
|
const keys = lodash.filter(lodash.uniq([
|
|
59
59
|
`routes.${routeName}`,
|
|
60
60
|
`routes.${routePath}`,
|
|
@@ -69,7 +69,7 @@ export const useMyth = () => {
|
|
|
69
69
|
singular,
|
|
70
70
|
lodash.snakeCase(singular)
|
|
71
71
|
]))
|
|
72
|
-
|
|
72
|
+
// console.log(keys)
|
|
73
73
|
let str: string | null = null
|
|
74
74
|
let k: string | any
|
|
75
75
|
|