main.js
1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* @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]);
});