@gct-paas/core 6.0.3-dev.4 → 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.
- package/dist/index.esm.min.js +2 -2
- package/dist/{redirect-index-HDIS3ucV.js → redirect-index-CbyVYSF2.js} +1 -1
- package/es/constants/default-date-type/default-date-type.d.ts +0 -4
- package/es/constants/default-date-type/default-date-type.mjs +0 -4
- package/es/global/gct/gct.mjs +0 -1
- package/es/modules/env-manager/env-manager.d.ts +0 -1
- package/es/modules/env-manager/env-manager.interface.d.ts +0 -6
- package/es/modules/env-manager/env-manager.mjs +0 -9
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @gct-paas/core v6.0
|
|
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};
|
|
@@ -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";
|
package/es/global/gct/gct.mjs
CHANGED
|
@@ -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 环境类型
|