main.js 1.2 KB
/*
 * @Description: 
 * @Author: huyue
 * @Date: 2024-12-30 11:12:18
 * @LastEditors: huyue
 * @LastEditTime: 2025-01-02 18:48:27
 */
/*
 * @Descripttion:
 * @version: 1.0.0
 * @Author: limin
 * @Date: 2021-08-13 14:12:11
 * @LastEditors: limin
 * @LastEditTime: 2021-09-14 09:34:52
 * @FilePath: \scrm\scrm-sub-blog\src\main.js
 */
import Vue from 'vue'
import apis from './api'
import './public-path'
// import 'glsx-components/dist/glsx-components.css'
import { start } from '@/setup'
import GLMapSdk from '@/utils/glsk-mapapi-sdk'
import filters from './utils/filters' //新增过滤器
Vue.prototype.$mapapi = new GLMapSdk()

Vue.config.productionTip = false
Vue.prototype.$apis = apis
Vue.prototype.size = 'small'
start()
export { bootstrap, mount, unmount }
    from '@/setup'
export const http = params => Vue.prototype.$http(params)
export const http_common = params => Vue.prototype.$http_common(params)
export const http_config = params => Vue.prototype.$http_config(params)
export const http_car = params => Vue.prototype.$http_car(params)
export const http_province = params => Vue.prototype.$http_province(params)
console.log(http_config)
Object.keys(filters).forEach(key => {
    Vue.filter(key, filters[key]);
});