chore(组件): 全局组件改为按需引用
This commit is contained in:
22
main.js
22
main.js
@@ -40,27 +40,7 @@ App.mpType = 'app';
|
||||
// 重写存储,增加前缀
|
||||
uniStorage();
|
||||
|
||||
//常用组件
|
||||
import loadingCover from '@/components/loading-cover/loading-cover.vue';
|
||||
Vue.component('loading-cover', loadingCover);
|
||||
|
||||
import nsMpHtml from '@/components/ns-mp-html/ns-mp-html.vue';
|
||||
Vue.component('ns-mp-html', nsMpHtml);
|
||||
|
||||
import nsEmpty from '@/components/ns-empty/ns-empty.vue';
|
||||
Vue.component('ns-empty', nsEmpty);
|
||||
|
||||
import MescrollUni from "@/components/mescroll/my-list-mescroll.vue";
|
||||
Vue.component("mescroll-uni", MescrollUni); //上拉加载,下拉刷新组件
|
||||
|
||||
import MescrollBody from "@/components/mescroll/mescroll-body.vue"
|
||||
Vue.component('mescroll-body', MescrollBody);
|
||||
|
||||
import NsLogin from "@/components/ns-login/ns-login.vue"
|
||||
Vue.component('ns-login', NsLogin);
|
||||
|
||||
import PrivacyPopup from '@/components/wx-privacy-popup/privacy-popup.vue';
|
||||
Vue.component('privacy-popup', PrivacyPopup)
|
||||
// 组件已改为按需引入,不再全局注册
|
||||
|
||||
const app = new Vue({
|
||||
...App,
|
||||
|
||||
Reference in New Issue
Block a user