123456789101112131415161718192021222324252627 |
- import Vue from 'vue';
- const Plugin = {
-
- install(vue, options) {
-
- vue.mixin({
- created() {
-
- const isRoot = this.constructor === Vue;
-
-
-
-
- if (isRoot) {
- const el = document.getElementById('loading');
- if (el) el.style.display = 'none';
- }
- },
- });
- },
- };
- Vue.use(Plugin, { baseUrl: process.env.VUE_APP_AXIOS_BASE_URL });
|