@cloudbase/lowcode-builder 1.10.34 → 1.10.35
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/lib/builder/config/dependencies.d.ts +1 -0
- package/lib/builder/config/dependencies.js +3 -2
- package/lib/builder.web.js +1 -1
- package/package.json +2 -2
- package/template/mp/packages/$wd_system/index.js.tpl +5 -0
- package/template/mp/packages/$wd_system/pages/login/methods/errorHandler.js +1 -1
- package/template/mp/packages/$wd_system/pages/login/methods/loginSuccessCallBack.js +10 -0
- package/template/webpack/web.prod.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/lowcode-builder",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.35",
|
|
4
4
|
"description": "云开发 Tencent CloudBase Framework Low Code Plugin,将低码配置生成完整项目并一键部署云开发资源。",
|
|
5
5
|
"author": "yhsunshining@gmail.com",
|
|
6
6
|
"homepage": "https://github.com/TencentCloudBase/cloudbase-framework#readme",
|
|
@@ -94,4 +94,4 @@
|
|
|
94
94
|
"webpack-dev-server": "^4.7.3",
|
|
95
95
|
"worker-loader": "^3.0.8"
|
|
96
96
|
}
|
|
97
|
-
}
|
|
97
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { registerAi, createAi } from "@cloudbase/ai";
|
|
2
|
+
import { registerApis, generateApis } from "@cloudbase/apis";
|
|
2
3
|
import { generateAuthInstance, registerAuth } from "@cloudbase/auth";
|
|
3
4
|
<% if(cdnEndpoints.aegis){ %>import Aegis from 'aegis-mp-sdk';<%} else {%> class Aegis {
|
|
4
5
|
constructor() {
|
|
@@ -32,6 +33,10 @@ const loadMap = {
|
|
|
32
33
|
generateAuthInstance,
|
|
33
34
|
registerAuth,
|
|
34
35
|
},
|
|
36
|
+
"@cloudbase/apis": {
|
|
37
|
+
registerApis,
|
|
38
|
+
generateApis,
|
|
39
|
+
},
|
|
35
40
|
"@cloudbase/adapter-wx_mp": require('@cloudbase/adapter-wx_mp')
|
|
36
41
|
};
|
|
37
42
|
|
|
@@ -164,7 +164,7 @@ export const parseCommonError = (e) => {
|
|
|
164
164
|
msg = `网络错误,请检查您的网络连接,稍后重试${prefixMsg(e.error_description)}`;
|
|
165
165
|
break;
|
|
166
166
|
case 'resource_exhausted':
|
|
167
|
-
return '
|
|
167
|
+
return '验证码已过期,或尝试过于频繁,请稍后重试,或选择其他登录方式';
|
|
168
168
|
case 'license_required':
|
|
169
169
|
return '该用户没有产品许可证,请授权后重试';
|
|
170
170
|
default:
|
|
@@ -13,6 +13,16 @@ export default function (instance) {
|
|
|
13
13
|
pageId: query.sourcePageId,
|
|
14
14
|
packageName: query.sourcePagePackageName || undefined,
|
|
15
15
|
params,
|
|
16
|
+
fail: (res) => {
|
|
17
|
+
if (res.errMsg?.includes?.('tabbar page')) {
|
|
18
|
+
const path = `${
|
|
19
|
+
query.sourcePagePackageName ? '/packages/' + query.sourcePagePackageName : ''
|
|
20
|
+
}/pages/${query.sourcePageId}/index`
|
|
21
|
+
app.switchTab({ url: path })
|
|
22
|
+
} else {
|
|
23
|
+
app.relaunchHome()
|
|
24
|
+
}
|
|
25
|
+
}
|
|
16
26
|
}) : app.relaunchHome();
|
|
17
27
|
} catch (e) {
|
|
18
28
|
app.relaunchHome();
|
|
@@ -100,7 +100,7 @@ module.exports = function (options) {
|
|
|
100
100
|
}),
|
|
101
101
|
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
|
|
102
102
|
new webpack.NormalModuleReplacementPlugin(
|
|
103
|
-
/@\/components\/(?!ui)(.*)|^@\/(lib|hooks|configs|utils)|^@\/components$/, // 使用否定前瞻匹配除ui外的所有路径
|
|
103
|
+
/@\/components\/(?!ui)(.*)|^@\/(lib|hooks|configs|utils|pages)|^@\/components$/, // 使用否定前瞻匹配除ui外的所有路径
|
|
104
104
|
function (resource) {
|
|
105
105
|
if (/lowcode\//.test(resource.context)) {
|
|
106
106
|
if (resource.request === '@/components') {
|