vite-vue3-lowcode/preview/main.ts

22 lines
390 B
TypeScript
Raw Permalink Normal View History

2022-07-03 02:38:58 +08:00
import { createApp } from 'vue';
import App from './App.vue';
2021-05-06 00:35:05 +08:00
2022-07-03 02:38:58 +08:00
import router from './router';
2021-05-06 00:35:05 +08:00
2022-07-03 02:38:58 +08:00
import { setupVant } from '@/plugins/vant';
2021-05-06 00:35:05 +08:00
2022-07-03 02:38:58 +08:00
import 'animate.css';
2021-06-12 22:19:59 +08:00
2022-07-03 02:38:58 +08:00
const app = createApp(App);
2021-05-06 00:35:05 +08:00
2021-05-30 14:31:04 +08:00
// 安装vant插件
2022-07-03 02:38:58 +08:00
setupVant(app);
2021-05-30 14:31:04 +08:00
2022-07-03 02:38:58 +08:00
app.config.globalProperties.$$refs = {};
2021-05-06 00:35:05 +08:00
// if (import.meta.env.DEV) {
2022-07-03 02:38:58 +08:00
window.$$refs = app.config.globalProperties.$$refs;
2021-05-06 00:35:05 +08:00
// }
2022-07-03 02:38:58 +08:00
app.use(router).mount('#app');