/* * @Author: FS * @Date: 2024-01-01 09:00:00 * @Description: 代理端管理系统入口文件 */ import Vue from 'vue' import Cookies from 'js-cookie' import Element from 'element-ui' import './assets/styles/element-variables.scss' import '@/assets/styles/index.scss' // global css import '@/assets/styles/common.scss' import App from './App' import store from './store' import router from './router' import './permission' // permission control import VueMeta from 'vue-meta' import * as echarts from "echarts"; import logImgDefault from '@/assets/images/profile.jpg' // 全局方法挂载 Vue.prototype.logImg = process.env.VUE_APP_LOG_URL || logImgDefault Vue.prototype.echarts = echarts Vue.prototype.msgSuccess = function (msg) { this.$message({ showClose: true, message: msg, type: "success" }); } Vue.prototype.msgError = function (msg) { this.$message({ showClose: true, message: msg, type: "error" }); } Vue.prototype.msgInfo = function (msg) { this.$message.info(msg); } Vue.use(VueMeta) /** * If you don't want to use mock-server * you want to use MockJs for mock api * you can execute: mockXHR() * * Currently MockJs will be used in the production environment, * please remove it before going online! ! ! */ Vue.use(Element, { size: Cookies.get('size') || 'medium' // set element-ui default size }) Vue.config.productionTip = false async function bootstrap() { new Vue({ el: '#app', router, store, render: h => h(App) }) } bootstrap()