12345678910111213141516171819 |
- import util from './util';
- const utils = {
- install(Vue) {
- if (this.installed) {
- return;
- }
- this.installed = true;
- Object.defineProperties(Vue.prototype, {
- $utils: {
- get: () => {
- return util
- }
- }
- })
- }
- }
- export default utils
|