@jx3box/jx3box-vue3-ui 0.1.9 → 0.1.11
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
|
@@ -93,11 +93,14 @@ export default {
|
|
|
93
93
|
},
|
|
94
94
|
ready: function () {
|
|
95
95
|
const count = this.count === "custom" ? this.amount : this.count;
|
|
96
|
-
return this.isNotSelf && this.isEnough && count && this.remark;
|
|
96
|
+
return this.isNotSelf && !this.targetIsSelf && this.isEnough && count && this.remark;
|
|
97
97
|
},
|
|
98
98
|
isNotSelf: function () {
|
|
99
99
|
return this.userId != User.getInfo().uid;
|
|
100
100
|
},
|
|
101
|
+
targetIsSelf: function () {
|
|
102
|
+
return this.chosen == User.getInfo().uid;
|
|
103
|
+
},
|
|
101
104
|
isEnough: function () {
|
|
102
105
|
const count = this.count === "custom" ? this.amount : this.count;
|
|
103
106
|
return this.left && this.left >= count;
|