vite-vue3-lowcode/preview/main.ts

20 lines
358 B
TypeScript
Raw Normal View History

2021-05-06 00:35:05 +08:00
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
2021-05-30 14:31:04 +08:00
import { setupVant } from '@/plugins/vant'
2021-05-06 00:35:05 +08:00
const app = createApp(App)
2021-05-30 14:31:04 +08:00
// 安装vant插件
setupVant(app)
2021-05-06 00:35:05 +08:00
app.config.globalProperties.$$refs = {}
// if (import.meta.env.DEV) {
window.$$refs = app.config.globalProperties.$$refs
// }
app.use(router).mount('#app')