You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
842 B
JavaScript

8 months ago
import App from './App'
import '@/assets/styles/main.scss'
import '@/uni_modules/uni-scss/theme-custom.scss'
import 'katex/dist/katex.min.css';
8 months ago
// #ifdef APP-VUE
plus.screen.lockOrientation('landscape-primary');
// #endif
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
...App
})
app.$mount()
// #endif
// #ifdef VUE3
import { createSSRApp } from 'vue';
import * as Pinia from 'pinia';
import registerComponents from '@/components/components.js';
import registerDirectives from '@/directive';
8 months ago
import { setupRouter } from './router'
export function createApp() {
const app = createSSRApp(App)
app.use(Pinia.createPinia())
setupRouter(app)
registerComponents(app);
registerDirectives(app);
8 months ago
return {
app,
Pinia
}
}
// #endif