@cloudbase/lowcode-builder 1.8.75 → 1.8.77
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.web.js +1 -1
- package/package.json +1 -1
- package/template/mp/common/util.js +1 -1
- package/template/mp/packages/$wd_system/pages/login/index.js +3 -4
- package/template/mp/packages/$wd_system/pages/login/index.json +0 -2
- package/template/mp/packages/$wd_system/pages/login/index.wxml +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/lowcode-builder",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.77",
|
|
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",
|
|
@@ -520,7 +520,7 @@ export async function checkAuth(app, appId, $page) {
|
|
|
520
520
|
<% if(skipCheckAuth){ %> return true <% } %>
|
|
521
521
|
|
|
522
522
|
const loginPage = findLoginPage(app);
|
|
523
|
-
const loginPageUUID = loginPage?.uuid || loginPage
|
|
523
|
+
const loginPageUUID = loginPage?.uuid || loginPage?.id
|
|
524
524
|
const currentUUID = $page.uuid || $page.id
|
|
525
525
|
if (loginPageUUID === currentUUID) {
|
|
526
526
|
return true;
|
|
@@ -64,7 +64,7 @@ Component({
|
|
|
64
64
|
})
|
|
65
65
|
const query = decodePageQuery(options || {});
|
|
66
66
|
let settingData = {
|
|
67
|
-
"logo": config.logo
|
|
67
|
+
"logo": app.__internal__.resolveStaticResourceUrl(config.logo) || "https://sso-1303824488.cos.ap-shanghai.myqcloud.com/logo.svg",
|
|
68
68
|
"agreement": {
|
|
69
69
|
"items": [],
|
|
70
70
|
"enable": false,
|
|
@@ -101,7 +101,7 @@ Component({
|
|
|
101
101
|
},
|
|
102
102
|
showAgreement(e) {
|
|
103
103
|
const index = e.currentTarget?.dataset?.index
|
|
104
|
-
const agreementContent = this.data.settingData.agreement.items[index]
|
|
104
|
+
const agreementContent = this.data.settingData.agreement.items[index]?.value
|
|
105
105
|
this.setData({
|
|
106
106
|
agreementContent,
|
|
107
107
|
isShowAgreement: !!agreementContent
|
|
@@ -109,7 +109,7 @@ Component({
|
|
|
109
109
|
},
|
|
110
110
|
checkAgreement(e) {
|
|
111
111
|
if (this.data.settingData.agreement.enable && !this.data.agreement) {
|
|
112
|
-
app.showToast({ title: '
|
|
112
|
+
app.showToast({ title: '请阅读勾选协议', icon: 'error', duartion: 1500 })
|
|
113
113
|
|
|
114
114
|
return false;
|
|
115
115
|
}
|
|
@@ -158,4 +158,3 @@ Component({
|
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
})
|
|
161
|
-
|
|
@@ -2,14 +2,12 @@
|
|
|
2
2
|
"usingComponents": {
|
|
3
3
|
"login-input": "./components/input/index",
|
|
4
4
|
"gsd-h5-react-Modal": "../../../../materials/gsd-h5-react/components/modal/index",
|
|
5
|
-
"gsd-h5-react-ScrollView": "../../../../materials/gsd-h5-react/components/scrollView/index",
|
|
6
5
|
"gsd-h5-react-RichTextView": "../../../../materials/gsd-h5-react/components/richText/index",
|
|
7
6
|
"wd-ph": "../../../../common/placeholder/index",
|
|
8
7
|
"wd-info": "../../../../common/info/index"
|
|
9
8
|
},
|
|
10
9
|
"componentPlaceholder": {
|
|
11
10
|
"gsd-h5-react-Modal": "wd-ph",
|
|
12
|
-
"gsd-h5-react-ScrollView": "wd-ph",
|
|
13
11
|
"gsd-h5-react-RichTextView": "wd-ph"
|
|
14
12
|
},
|
|
15
13
|
"navigationBarTitleText": "登录"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
</view>
|
|
51
51
|
</view>
|
|
52
52
|
<gsd-h5-react-Modal id="id4" style="position: absolute;" isDefaultButton="{{false}}" visible="{{isShowAgreement}}" bind:close="showAgreement">
|
|
53
|
-
<scroll-view id="id6" style="height:500px;margin-top:20px;" class="weda-ui" scroll-y="true">
|
|
53
|
+
<scroll-view id="id6" style="height:500px;margin-top:20px;" class="weda-ui" scroll-y="true" slot="customContent">
|
|
54
54
|
<gsd-h5-react-RichTextView id="id5" style="height: 60%" value="{{agreementContent}}" />
|
|
55
55
|
</scroll-view>
|
|
56
56
|
</gsd-h5-react-Modal>
|