@gct-paas/core 6.0.3-dev.8 → 6.2.0-dev.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-DcnRYGkx.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/es/modules/user-stores/store/user.store.d.ts +0 -8
- package/es/utils/axios/interceptors.mjs +1 -1
- 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 环境类型
|
|
@@ -38,9 +38,7 @@ export declare const useUserStore: import('pinia').StoreDefinition<"user", UserS
|
|
|
38
38
|
signType?: string | undefined;
|
|
39
39
|
signWay?: string | undefined;
|
|
40
40
|
signatureImage?: string | undefined;
|
|
41
|
-
signatureImageVertical?: string | undefined;
|
|
42
41
|
signatureImageWrite?: string | undefined;
|
|
43
|
-
signatureImageWriteVertical?: string | undefined;
|
|
44
42
|
suiteTicket?: string | undefined;
|
|
45
43
|
telephone?: string | undefined;
|
|
46
44
|
tenantList?: {
|
|
@@ -113,9 +111,7 @@ export declare const useUserStore: import('pinia').StoreDefinition<"user", UserS
|
|
|
113
111
|
signType?: string | undefined;
|
|
114
112
|
signWay?: string | undefined;
|
|
115
113
|
signatureImage?: string | undefined;
|
|
116
|
-
signatureImageVertical?: string | undefined;
|
|
117
114
|
signatureImageWrite?: string | undefined;
|
|
118
|
-
signatureImageWriteVertical?: string | undefined;
|
|
119
115
|
suiteTicket?: string | undefined;
|
|
120
116
|
telephone?: string | undefined;
|
|
121
117
|
tenantList?: {
|
|
@@ -185,9 +181,7 @@ export declare const useUserStore: import('pinia').StoreDefinition<"user", UserS
|
|
|
185
181
|
signType?: string | undefined;
|
|
186
182
|
signWay?: string | undefined;
|
|
187
183
|
signatureImage?: string | undefined;
|
|
188
|
-
signatureImageVertical?: string | undefined;
|
|
189
184
|
signatureImageWrite?: string | undefined;
|
|
190
|
-
signatureImageWriteVertical?: string | undefined;
|
|
191
185
|
suiteTicket?: string | undefined;
|
|
192
186
|
telephone?: string | undefined;
|
|
193
187
|
tenantList?: {
|
|
@@ -263,9 +257,7 @@ export declare const useUserStore: import('pinia').StoreDefinition<"user", UserS
|
|
|
263
257
|
signType?: string | undefined;
|
|
264
258
|
signWay?: string | undefined;
|
|
265
259
|
signatureImage?: string | undefined;
|
|
266
|
-
signatureImageVertical?: string | undefined;
|
|
267
260
|
signatureImageWrite?: string | undefined;
|
|
268
|
-
signatureImageWriteVertical?: string | undefined;
|
|
269
261
|
suiteTicket?: string | undefined;
|
|
270
262
|
telephone?: string | undefined;
|
|
271
263
|
tenantList?: {
|
|
@@ -53,7 +53,7 @@ function interceptors(axios) {
|
|
|
53
53
|
axios.interceptors.response.use((response) => {
|
|
54
54
|
if (response.data.code === 200) return response;
|
|
55
55
|
else {
|
|
56
|
-
|
|
56
|
+
logBusinessError(response);
|
|
57
57
|
const { errorMessageMode } = response.config || {};
|
|
58
58
|
const { code, subMessage, message, subCode } = response.data;
|
|
59
59
|
if (subCode === "sys.global.tenantId.required") {
|