@ftlab/one-vue3 0.3.8-3 → 0.3.8-5

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/CHANGELOG.md CHANGED
@@ -7,7 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
9
9
 
10
- ## [v0.3.8-3](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.3.8-2...v0.3.8-3)
10
+ ## [v0.3.8-5](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.3.8-4...v0.3.8-5)
11
+
12
+ ### Commits
13
+
14
+ - fix [`1caf48e`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/1caf48ef7c93b8fb53e8bb70b2b730186dbd260a)
15
+
16
+ ## [v0.3.8-4](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.3.8-3...v0.3.8-4) - 2025-06-04
17
+
18
+ ### Commits
19
+
20
+ - fix [`c811f1a`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/c811f1a9526e87de831c6006297f806ef84d2dc7)
21
+ - fix: detail [`46b774a`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/46b774aba185902976975d94f6d80a2eb4854492)
22
+
23
+ ## [v0.3.8-3](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.3.8-2...v0.3.8-3) - 2025-06-04
11
24
 
12
25
  ### Commits
13
26
 
@@ -2,10 +2,10 @@ import axios from 'axios';
2
2
 
3
3
  const defaultBaseUrl = 'https://gateway-staging.ftlapp.io';
4
4
 
5
- export async function getInfoResource(baseUrl: string, route: any, callBack: (params: any) => void) {
5
+ export async function getInfoResource(baseUrl, route, callBack) {
6
6
  if (route.query.token) {
7
7
  localStorage.setItem('token', route.query.token);
8
- const res: any = await axios.post(`${baseUrl ? baseUrl : defaultBaseUrl}/api/auth/loginWithToken`, null, {
8
+ const res = await axios.post(`${baseUrl ? baseUrl : defaultBaseUrl}/api/auth/loginWithToken`, null, {
9
9
  headers: {
10
10
  Authorization: route.query.token
11
11
  }
@@ -3,8 +3,8 @@
3
3
  * @param {*} resources auth返回的平铺资源列表
4
4
  * @returns 返回需要筛选路由存在于平铺资源列表里的路由
5
5
  */
6
- export function filterAsyncRoutes(asyncRoutes: any, resources: any) {
7
- const filterRoutes: any[] = [];
6
+ export function filterAsyncRoutes(asyncRoutes, resources) {
7
+ const filterRoutes = [];
8
8
  asyncRoutes.forEach((asy) => {
9
9
  if (resources.find((res) => res.name === asy.name)) {
10
10
  if (asy.children) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ftlab/one-vue3",
3
- "version": "0.3.8-3",
3
+ "version": "0.3.8-5",
4
4
  "description": "One for Apps based on Element UI",
5
5
  "main": "dist/ftlOne.js",
6
6
  "type": "module",
File without changes
File without changes