..
This commit is contained in:
@@ -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
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user