chore(组件): 全局组件改为按需引用

This commit is contained in:
2025-12-26 14:29:38 +08:00
parent e949b14090
commit 86831b8551
27 changed files with 287 additions and 103 deletions

View File

@@ -26,8 +26,19 @@
</template>
<script>
import nsLogin from '@/components/ns-login/ns-login.vue';
import loadingCover from '@/components/loading-cover/loading-cover.vue';
// #ifdef MP-WEIXIN
import privacyPopup from '@/components/wx-privacy-popup/privacy-popup.vue';
// #endif
export default {
components: {},
components: {
nsLogin,
loadingCover,
// #ifdef MP-WEIXIN
privacyPopup
// #endif
},
data() {
return {
diyData: null

View File

@@ -134,6 +134,10 @@
<script>
import uniPopup from '@/components/uni-popup/uni-popup.vue';
import nsNavbar from '@/components/ns-navbar/ns-navbar.vue';
import nsLogin from '@/components/ns-login/ns-login.vue';
// #ifdef MP-WEIXIN
import privacyPopup from '@/components/wx-privacy-popup/privacy-popup.vue';
// #endif
import diyJs from '@/common/js/diy.js';
import indexJs from './public/js/index.js';
import toTop from '@/components/toTop/toTop.vue';
@@ -144,7 +148,11 @@
components: {
uniPopup,
nsNavbar,
toTop
toTop,
nsLogin,
// #ifdef MP-WEIXIN
privacyPopup
// #endif
},
mixins: [diyJs, scroll, indexJs]
};