jufubao-forms 1.0.6 → 1.0.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-forms",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "private": false,
5
5
  "description": "聚福宝表单业务插件库",
6
6
  "main": "index.js",
@@ -310,6 +310,7 @@
310
310
  onJfbLoad(options) {
311
311
  let imgHost = this.projectAttr['img_host'] || this.$settings.cdnUrl;
312
312
  this.imgHost = imgHost;
313
+ options.form_id = options.form_id || options.id;
313
314
 
314
315
  if (!this.isPreview){
315
316
  if(!options.form_id) {
@@ -256,7 +256,7 @@
256
256
  },
257
257
  methods: {
258
258
  onJfbLoad(options) {
259
-
259
+ options.form_id = options.form_id || options.id;
260
260
  if(!this.isPreview && !options.form_id) {
261
261
  return uni.showToast({
262
262
  title: '请配置表单id',