You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jwl-applet/src/main.js

21 lines
550 B

2 years ago
import {
createSSRApp
} from "vue";
import uviewPlus from './uni_modules/uview-plus'
import platform from '@/jtools/platform';
import constants from '@/jtools/constants';
import storage from '@/jtools/storage';
2 years ago
import { createPinia } from 'pinia'
2 years ago
import App from "./App.vue";
export function createApp() {
const app = createSSRApp(App);
app.config.globalProperties.$platform=platform
app.config.globalProperties.$constants=constants
app.config.globalProperties.$storage=storage
app.use(uviewPlus)
2 years ago
app.use(createPinia())
2 years ago
return {
app,
};
}