@jx3box/jx3box-common-ui 7.2.6 → 7.2.8

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": "@jx3box/jx3box-common-ui",
3
- "version": "7.2.6",
3
+ "version": "7.2.8",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -57,9 +57,12 @@ export default {
57
57
  },
58
58
  },
59
59
  watch : {
60
- postId : function (val){
61
- this.init();
62
- }
60
+ postId: {
61
+ handler: function (val) {
62
+ val && this.init();
63
+ },
64
+ immediate: true,
65
+ },
63
66
  }
64
67
  };
65
68
  </script>
@@ -99,7 +99,7 @@ export default {
99
99
  return this.userId != User.getInfo().uid;
100
100
  },
101
101
  targetIsSelf: function () {
102
- return this.chosen == this.userId;
102
+ return this.chosen == User.getInfo().uid;
103
103
  },
104
104
  isEnough: function () {
105
105
  const count = this.count === "custom" ? this.amount : this.count;