From 34856a1b4251bafa40a532c968b671accdf24561 Mon Sep 17 00:00:00 2001 From: qiang Date: Thu, 27 Jun 2019 17:27:09 +0800 Subject: [PATCH] lint fix --- src/core/service/api/context/inner-audio.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/service/api/context/inner-audio.js b/src/core/service/api/context/inner-audio.js index 24a437898c..865e95d5fb 100644 --- a/src/core/service/api/context/inner-audio.js +++ b/src/core/service/api/context/inner-audio.js @@ -43,9 +43,11 @@ class InnerAudioContext { Object.defineProperty(this, property, { set: property === 'src' ? (src) => { audio.src = getRealPath(src) - return this._src = src + this._src = src + return src } : (val) => { - return audio[property] = val + audio[property] = val + return val }, get: property === 'src' ? () => { return this._src -- GitLab