2021-04-30 11:51:01 +08:00
|
|
|
import Vue from "vue";
|
|
|
|
|
import App from "./App.vue";
|
|
|
|
|
import ViewUI from "view-design";
|
|
|
|
|
import "view-design/dist/styles/iview.css";
|
|
|
|
|
import VueClipboard from "vue-clipboard2";
|
2021-09-03 11:30:15 +08:00
|
|
|
//import print from 'vue-print-nb'
|
2021-04-30 11:51:01 +08:00
|
|
|
|
2021-04-30 16:39:20 +08:00
|
|
|
// import HelloWorld from "./components/HelloWorld.vue";
|
2021-04-30 11:51:01 +08:00
|
|
|
|
2021-04-30 16:39:20 +08:00
|
|
|
// import Fault from './components/Fault.vue'
|
2021-04-30 11:51:01 +08:00
|
|
|
|
|
|
|
|
import VueRouter from "vue-router";
|
|
|
|
|
|
2021-04-30 16:39:20 +08:00
|
|
|
import routes from '@/route'
|
|
|
|
|
|
2021-05-31 17:06:19 +08:00
|
|
|
import print from './print'
|
2021-04-30 16:39:20 +08:00
|
|
|
|
2021-05-31 17:06:19 +08:00
|
|
|
Vue.use(print);
|
2021-04-30 16:39:20 +08:00
|
|
|
|
|
|
|
|
// const routes=[
|
|
|
|
|
// {
|
|
|
|
|
// path: '/',
|
|
|
|
|
// name: '_home',
|
|
|
|
|
// redirect: '/a'
|
|
|
|
|
// },
|
|
|
|
|
// { path: '/a', component: HelloWorld },
|
|
|
|
|
// { path: '/b', component: Fault }
|
|
|
|
|
// ]
|
2021-04-30 11:51:01 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Vue.use(VueRouter);
|
|
|
|
|
const router = new VueRouter({
|
|
|
|
|
routes // (缩写) 相当于 routes: routes
|
|
|
|
|
})
|
|
|
|
|
Vue.config.productionTip = false;
|
|
|
|
|
Vue.use(ViewUI);
|
|
|
|
|
Vue.use(VueClipboard);
|
|
|
|
|
new Vue({ router, render: (h) => h(App) }).$mount("#app");
|