import App from './App'
import { createSSRApp } from 'vue'
import { createPinia } from 'pinia';
import './static/commonScss/common.scss';
import './static/styles/style.scss';
import './request/httpInterceptors';
// 导入全局组件
import CustomTabBar from './components/CustomTabBar/CustomTabBar.vue';
export function createApp() {
const app = createSSRApp(App)
const pinia = createPinia();
app.use(pinia);
// 注册全局组件
app.component('CustomTabBar', CustomTabBar);
return {
app
}
}
//App.vue
<template>
<view class="app">
<router-view />
<CustomTabBar />
</view>
</template>
kerwin_
- 发布:2024-08-16 18:15
- 更新:2024-08-16 20:03
- 阅读:124
1 个回复
DCloud_UNI_yuhe
你好,我这里经过测试,没有发现这种问题,您检查一下是否是其它因素影响