|
@@ -20,22 +20,24 @@ Component({
|
|
|
},
|
|
|
lifetimes: {
|
|
|
attached: function () {
|
|
|
- try {
|
|
|
- const {
|
|
|
- formName,
|
|
|
- appName
|
|
|
- } = this.data.authName;
|
|
|
- let privacyFieldC = wx.getStorageSync('auth')[appName].forms[formName].formcols.map(v => v.title);
|
|
|
- this.setData({
|
|
|
- privacyFieldC
|
|
|
- })
|
|
|
- console.log("privacyFieldC", privacyFieldC)
|
|
|
- } catch (error) {
|
|
|
- console.error("查询隐私字段", error)
|
|
|
- this.setData({
|
|
|
- privacyFieldC: []
|
|
|
- })
|
|
|
- }
|
|
|
+ setTimeout(() => {
|
|
|
+ try {
|
|
|
+ const {
|
|
|
+ formName,
|
|
|
+ appName
|
|
|
+ } = this.data.authName;
|
|
|
+ let privacyFieldC = wx.getStorageSync('auth')[appName].forms[formName].formcols.map(v => v.title);
|
|
|
+ this.setData({
|
|
|
+ privacyFieldC
|
|
|
+ })
|
|
|
+ console.log("privacyFieldC", privacyFieldC)
|
|
|
+ } catch (error) {
|
|
|
+ console.error("查询隐私字段", error)
|
|
|
+ this.setData({
|
|
|
+ privacyFieldC: []
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }, 1000)
|
|
|
}
|
|
|
},
|
|
|
methods: {
|