|
@@ -235,15 +235,15 @@ var _default = {
|
|
|
that.$set(that.form, "".concat(e.name), arr);
|
|
|
},
|
|
|
submit: function submit(ref) {
|
|
|
- var _this = this;
|
|
|
- this.$refs[ref].validate().then( /*#__PURE__*/function () {
|
|
|
+ var that = this;
|
|
|
+ that.$refs[ref].validate().then( /*#__PURE__*/function () {
|
|
|
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(data) {
|
|
|
var res;
|
|
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
|
while (1) {
|
|
|
switch (_context.prev = _context.next) {
|
|
|
case 0:
|
|
|
- data.user = _this.user._id;
|
|
|
+ data.user = that.user._id;
|
|
|
_context.next = 3;
|
|
|
return that.$api("/opinion", 'POST', data);
|
|
|
case 3:
|