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.
28 lines
835 B
28 lines
835 B
import { createApp } from 'vue'
|
|
import { onMounted, ref, reactive,h } from 'vue';
|
|
|
|
import { createWebHashHistory, createRouter } from 'vue-router'
|
|
import App from './App.vue'
|
|
import Antd from 'ant-design-vue';
|
|
import TestFeeder from './components/TestFeeder.vue';
|
|
import TestTubePreProcess from './components/TestTubePreProcess.vue';
|
|
import './style/app.css'
|
|
|
|
|
|
const router = createRouter({
|
|
history: createWebHashHistory(),
|
|
routes: [
|
|
{ name: 'feeder', path: '/feeder', component: TestFeeder },
|
|
{ name: 'tube-pre-process', path: '/tube-pre-process', component: TestTubePreProcess },
|
|
],
|
|
})
|
|
|
|
let app = createApp(App)
|
|
// 创建一个全局响应式对象
|
|
const pageRefCnt = ref(1);
|
|
// 使用 provide 提供全局状态
|
|
app.provide('pageRefCnt', pageRefCnt);
|
|
|
|
app.use(router);
|
|
app.use(Antd);
|
|
app.mount('#app')
|