| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- /*
- * @Author: wanglj wanglijie@dashoo.cn
- * @Date: 2025-01-08 15:30:34
- * @LastEditors: wanglj
- * @LastEditTime: 2025-01-08 16:29:09
- * @Description: file content
- * @FilePath: \Shkjem-master\src\main.js
- */
- import Vue from 'vue'
- import App from './App.vue'
- import router from './router'
- import axios from 'axios'
- import store from './store'
- import '@/assets/styles/index.scss'
- import ElementUI from 'element-ui';
- import 'element-ui/lib/theme-chalk/index.css';
- Vue.use(ElementUI);
- import VueAwesomeSwiper from 'vue-awesome-swiper'
- import 'swiper/dist/css/swiper.css'
- Vue.use(VueAwesomeSwiper);
- import VideoPlayer from 'vue-video-player'
- import 'video.js/dist/video-js.css'
- import 'vue-video-player/src/custom-theme.css'
- Vue.use(VideoPlayer)
- import VueLazyload from 'vue-lazyload'
- Vue.use(VueLazyload, {
- //完全显示的时候加载
- preLoad: 1,
- //失败时显示的图片
- error: require('./assets/img/error.png'),
- //加载时显示的GIF图
- loading: require('./assets/img/loading.gif'),
- //尝试加载几次
- attempt: 1
- });
- Vue.config.productionTip = false
- //设置超时时间
- axios.defaults.timeout = 5000
- //设置api地址
- //全局定义axios
- axios.defaults.baseURL = 'http://shkjgw.shkjem.com/api/'
- Vue.prototype.$http = axios
- // 图片服务器地址
- Vue.prototype.imgserver = 'http://shkjgw.shkjem.com/'
- import { parseTime } from '@/utils/ruoyi'
- Vue.prototype.parseTime = parseTime
- new Vue({
- router,
- store,
- render: h => h(App)
- }).$mount('#app')
|