w-ui-v1 1.1.37 → 1.1.38

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/w-add/w-add.vue +6 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "w-ui-v1",
3
- "version": "1.1.37",
3
+ "version": "1.1.38",
4
4
  "description": "w-ui",
5
5
  "author": "wgxshh",
6
6
  "license": "ISC",
package/w-add/w-add.vue CHANGED
@@ -121,8 +121,12 @@ watch(checkboxvalue, (value) => {
121
121
 
122
122
  onBeforeUpdate(()=>{
123
123
  console.log('ssss')
124
- mainCode.value=props.mainCode
125
- sourceId.value = props.sourceId
124
+ if(props.mainCode){
125
+ mainCode.value=props.mainCode
126
+ }
127
+ if(props.sourceId){
128
+ sourceId.value = props.sourceId
129
+ }
126
130
  })
127
131
 
128
132
  onUnload(() => {