| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- // The Vue build version to load with the `import` command
- // (runtime-only or standalone) has been set in webpack.base.conf with an alias.
- import Vue from 'vue'
- import App from './App'
- /* 路由 */
- import router from './router'
- /* axios */
- import axios from './api'
- import api from './api/api'
- Vue.prototype.http = axios;
- Vue.prototype.api = api;
- /* swiper */
- import 'swiper/dist/css/swiper.min.css';
- /* 重置样式 */
- import './assets/css/reset.min.css'
- /* 全局布局边距系统 */
- import './assets/css/layout-spacing.css'
- /* 全局通用样式系统 (新增) */
- import './assets/css/global-styles.css'
- /* 解决方案页面通用样式 (新增) */
- import './assets/css/solutions-common.css'
- /* 产品页面通用样式 (新增) */
- import './assets/css/products-common.css'
- /* RAG 解决方案样式 (新增) */
- import './assets/css/rag-solutions.css'
- /* jquery */
- import 'jquery'
- /* bootstarp */
- import './assets/css/bootstrap.min.css'
- import './assets/js/bootstrap.min'
- /* animate.css */
- import 'animate.css'
- /* 头部组件 */
- import Header from './components/Header'
- Vue.component(Header.name, Header)
- /* 尾部组件 */
- import Footer from './components/Footer'
- Vue.component(Footer.name, Footer)
- /* 回到顶部 */
- import GoTop from './components/GoTop'
- Vue.component(GoTop.name, GoTop)
- Vue.config.productionTip = false
- router.beforeEach((to, from, next) => {
- if (to.meta.title) {
- document.title = to.meta.title
- }
- next();
- });
- new Vue({
- el: '#app',
- router,
- components: {App},
- template: '<App/>'
- })
|