inl-ui 0.1.52 → 0.1.53

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/README.md CHANGED
@@ -1,49 +1,49 @@
1
- # 工业PC ui库
2
-
3
- 前端通用库,包括组件、hooks、utils等。
4
-
5
- ### 运行
6
-
7
- + 开发模式 yarn dev
8
- + 生产打包 yarn build
9
- + 生成文档 yarn build:docs
10
- + 打包图扑工具 yarn buildtp
11
-
12
- ### 使用方法
13
-
14
- ```javascript
15
- import inl from 'inl-ui';
16
- import 'inl-ui/dist/style.css';
17
-
18
- vue.use(inl)
19
- ```
20
-
21
-
22
-
23
- ### 激活主题
24
-
25
- **vite.config.ts**
26
-
27
- ```javascript
28
- const additionalData = require("inl-ui/dist/theme").default;
29
-
30
- ...
31
-
32
- css: {
33
- preprocessorOptions: {
34
- less: {
35
- javascriptEnabled: true,
36
- additionalData,
37
- },
38
- },
39
- },
40
- ```
41
-
42
- ### 文档链接
43
-
44
- ##### [组件文档](./src/components/README.md)
45
-
46
- ##### [hooks文档](./src/hooks/README.md)
47
-
48
- ##### [Utils文档](./src/utils/README.md)
49
-
1
+ # 工业PC ui库
2
+
3
+ 前端通用库,包括组件、hooks、utils等。
4
+
5
+ ### 运行
6
+
7
+ + 开发模式 yarn dev
8
+ + 生产打包 yarn build
9
+ + 生成文档 yarn build:docs
10
+ + 打包图扑工具 yarn buildtp
11
+
12
+ ### 使用方法
13
+
14
+ ```javascript
15
+ import inl from 'inl-ui';
16
+ import 'inl-ui/dist/style.css';
17
+
18
+ vue.use(inl)
19
+ ```
20
+
21
+
22
+
23
+ ### 激活主题
24
+
25
+ **vite.config.ts**
26
+
27
+ ```javascript
28
+ const additionalData = require("inl-ui/dist/theme").default;
29
+
30
+ ...
31
+
32
+ css: {
33
+ preprocessorOptions: {
34
+ less: {
35
+ javascriptEnabled: true,
36
+ additionalData,
37
+ },
38
+ },
39
+ },
40
+ ```
41
+
42
+ ### 文档链接
43
+
44
+ ##### [组件文档](./src/components/README.md)
45
+
46
+ ##### [hooks文档](./src/hooks/README.md)
47
+
48
+ ##### [Utils文档](./src/utils/README.md)
49
+
@@ -6520,12 +6520,16 @@ function getOpenUrl(url) {
6520
6520
  userId: userinfo.userId,
6521
6521
  theme
6522
6522
  };
6523
- if (urlObj.hash) {
6524
- const converceUrl = new URL(urlObj.hash.replace("#", location.origin));
6525
- setParam(converceUrl.searchParams, additionalParams);
6526
- urlObj.hash = converceUrl.href.replace(location.origin, "#");
6523
+ if (urlObj.searchParams.get("appType") === "third") {
6524
+ urlObj.searchParams.delete("appType");
6527
6525
  } else {
6528
- setParam(urlObj.searchParams, additionalParams);
6526
+ if (urlObj.hash) {
6527
+ const converceUrl = new URL(urlObj.hash.replace("#", location.origin));
6528
+ setParam(converceUrl.searchParams, additionalParams);
6529
+ urlObj.hash = converceUrl.href.replace(location.origin, "#");
6530
+ } else {
6531
+ setParam(urlObj.searchParams, additionalParams);
6532
+ }
6529
6533
  }
6530
6534
  let res = urlObj.href;
6531
6535
  if (!isWithOrigin) {
@@ -6509,12 +6509,16 @@ function getOpenUrl(url) {
6509
6509
  userId: userinfo.userId,
6510
6510
  theme
6511
6511
  };
6512
- if (urlObj.hash) {
6513
- const converceUrl = new URL(urlObj.hash.replace("#", location.origin));
6514
- setParam(converceUrl.searchParams, additionalParams);
6515
- urlObj.hash = converceUrl.href.replace(location.origin, "#");
6512
+ if (urlObj.searchParams.get("appType") === "third") {
6513
+ urlObj.searchParams.delete("appType");
6516
6514
  } else {
6517
- setParam(urlObj.searchParams, additionalParams);
6515
+ if (urlObj.hash) {
6516
+ const converceUrl = new URL(urlObj.hash.replace("#", location.origin));
6517
+ setParam(converceUrl.searchParams, additionalParams);
6518
+ urlObj.hash = converceUrl.href.replace(location.origin, "#");
6519
+ } else {
6520
+ setParam(urlObj.searchParams, additionalParams);
6521
+ }
6518
6522
  }
6519
6523
  let res = urlObj.href;
6520
6524
  if (!isWithOrigin) {