vue2-client 1.8.441 → 1.8.442

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": "vue2-client",
3
- "version": "1.8.441",
3
+ "version": "1.8.442",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -108,10 +108,16 @@ export default {
108
108
  onSubmit () {
109
109
  if (this.$refs.main?.config?.confirmFunction) {
110
110
  console.info('执行自定义确认逻辑')
111
- executeStrFunctionByContext(this, this.$refs.main?.config?.confirmFunction, [])
111
+ const result = executeStrFunctionByContext(this, this.$refs.main?.config?.confirmFunction, [])
112
+ if (result instanceof Promise) {
113
+ result.then(() => {
114
+ this.close()
115
+ })
116
+ } else {
117
+ this.close()
118
+ }
112
119
  } else {
113
120
  console.warn('未配置modal确认按钮逻辑')
114
- this.loading = true
115
121
  this.close()
116
122
  }
117
123
  },