cec-nuxt-lib 0.5.2 → 0.5.3

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
  {
2
2
  "name": "cec-nuxt-lib",
3
3
  "configKey": "cec-nuxt-lib",
4
- "version": "0.5.2"
4
+ "version": "0.5.3"
5
5
  }
@@ -6,6 +6,8 @@ const config = useRuntimeConfig();
6
6
  const baseUrl = config.app.baseURL;
7
7
 
8
8
  const classicPath = useState('classicPath');
9
+ const path = useState('path');
10
+ console.log(path.value);
9
11
  const route = useRoute();
10
12
 
11
13
  const trimPath = (str) => {
@@ -17,9 +19,9 @@ const trimPath = (str) => {
17
19
 
18
20
  const makeLink = (i, routes) => {
19
21
  if (!i) {
20
- return '/';
22
+ return path.value;
21
23
  }
22
- return '/' + routes.slice(0, i).join('/');
24
+ return path.value + routes.slice(0, i).join('/');
23
25
  };
24
26
 
25
27
  const toTitleCase = (str) => {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.5.2",
2
+ "version": "0.5.3",
3
3
  "name": "cec-nuxt-lib",
4
4
  "description": "Nuxt components and assets",
5
5
  "license": "MIT",