This commit is contained in:
那些花儿
2025-04-30 13:34:37 +08:00
parent ad9a7bc7b8
commit baa6f7284a
12 changed files with 567 additions and 284 deletions
+9 -1
View File
@@ -1,4 +1,5 @@
import {createSSRApp} from "vue";
import * as Pinia from 'pinia';
import App from "./App.vue";
// 引入TDesign组件库
@@ -14,10 +15,17 @@ import 'moment/dist/locale/zh-cn'
moment.locale('zh-cn')
uni.$on('beforeRouterEnter', async (to, from, next) => {
console.log('beforeRouterEnter', to, from)
})
export function createApp() {
const app = createSSRApp(App);
app.use(TDesign); // 使用TDesign组件库
app.use(TDesign);
app.use(Pinia.createPinia())
return {
app,
Pinia
};
}