Created
January 31, 2020 10:12
-
-
Save sungchuni/939730d2b5e5b55a865a37752bc6bc69 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default new Proxy({}, { | |
set(target, property, value) { | |
if (property === 'render') { | |
target[property] = function (h, vm) { | |
return value(h, vm); | |
}; | |
} else { | |
target[property] = value; | |
} | |
return value; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment