@gct-paas/core 6.0.3-dev.3 → 6.1.0

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.
@@ -1,2 +1,2 @@
1
- /*! @gct-paas/core v6.0.3-dev.2 */
1
+ /*! @gct-paas/core v6.1.0 */
2
2
  import{createElementBlock as e,defineComponent as r,openBlock as t,unref as a}from"vue";import{useRouter as p}from"vue-router";var o=/* @__PURE__ */r({__name:"redirect-index",setup(r){const{currentRoute:o,replace:i}=p(),{params:s,query:u}=a(o),{path:m,_redirect_type:n="path"}=s;Reflect.deleteProperty(s,"_redirect_type"),Reflect.deleteProperty(s,"path");const c=Array.isArray(m)?m.join("/"):m;return i("name"===n?{name:c,query:u,params:JSON.parse(s._origin_params??"{}")}:{path:c.startsWith("/")?c:"/"+c,query:u}),(r,a)=>(t(),e("div"))}});export{o as default};
@@ -19,10 +19,6 @@ export declare enum DefaultDateTypeConst {
19
19
  * 近N天
20
20
  */
21
21
  PastDays = "past-days",
22
- /**
23
- * 未来N天
24
- */
25
- FutureDays = "future-days",
26
22
  /**
27
23
  * 本周
28
24
  */
@@ -21,10 +21,6 @@ var DefaultDateTypeConst = /* @__PURE__ */ function(DefaultDateTypeConst) {
21
21
  */
22
22
  DefaultDateTypeConst["PastDays"] = "past-days";
23
23
  /**
24
- * 未来N天
25
- */
26
- DefaultDateTypeConst["FutureDays"] = "future-days";
27
- /**
28
24
  * 本周
29
25
  */
30
26
  DefaultDateTypeConst["ThisWeek"] = "this-week";
@@ -97,7 +97,6 @@ var GctGlobal = class {
97
97
  /**初始化i18n */
98
98
  await this.store.init();
99
99
  await this.env.checkIsTestEnv();
100
- await this.env.checkBranch();
101
100
  await this.i18nUtil.init();
102
101
  }
103
102
  };
@@ -52,7 +52,6 @@ export declare class EnvironmentManager implements IEnvironmentManager {
52
52
  * 检测是否为测试环境
53
53
  */
54
54
  checkIsTestEnv(): Promise<void>;
55
- checkBranch(): Promise<void>;
56
55
  /**
57
56
  * 获取当前环境类型
58
57
  * @returns 环境类型
@@ -35,12 +35,6 @@ export interface IEnvironmentManager {
35
35
  * @param loadTenant 是否加载租户信息
36
36
  */
37
37
  checkIsTestEnv(loadTenant?: boolean): Promise<void>;
38
- /**
39
- * 检查分支信息,如果是 dev 环境时,aid 存在的情况下,未指定分支去后台获取默认分支
40
- *
41
- * @return {*} {Promise<void>}
42
- */
43
- checkBranch(): Promise<void>;
44
38
  /**
45
39
  * 获取当前环境类型
46
40
  * @returns 环境类型
@@ -94,15 +94,6 @@ var EnvironmentManager = class {
94
94
  }
95
95
  if (this._testEnv) await _gct.store.setContext({ env: EnvironmentType.TEST });
96
96
  }
97
- async checkBranch() {
98
- if (_gct.store.context.aid && !_gct.store.context.bid && _gct.store.context.env === EnvironmentType.DEV) try {
99
- const defaultBranch = (await _api.apaas.appBranch.getList()).find((item) => item.head === 1);
100
- if (defaultBranch) _gct.store.setContext({ bid: defaultBranch.id });
101
- else console.warn("未找到默认分支,请检查后台配置");
102
- } catch (error) {
103
- console.error("获取默认分支失败", error);
104
- }
105
- }
106
97
  /**
107
98
  * 获取当前环境类型
108
99
  * @returns 环境类型
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/core",
3
- "version": "6.0.3-dev.3",
3
+ "version": "6.1.0",
4
4
  "type": "module",
5
5
  "description": "paas 平台核心包",
6
6
  "loader": "dist/index.esm.min.js",