2023-01-06 16:00:15 +08:00
|
|
|
import { createApp } from 'vue'
|
|
|
|
|
import App from './App.vue'
|
|
|
|
|
import router from './router'
|
|
|
|
|
import store from './store'
|
|
|
|
|
import './assets/iconfont/iconfont.css'
|
|
|
|
|
import './assets/iconfont/iconfont.js'
|
2023-10-20 17:21:45 +08:00
|
|
|
import './assets/iconfont2/iconfont.css'
|
2023-01-06 16:00:15 +08:00
|
|
|
import flexible from './tool/flexible.js'
|
|
|
|
|
import 'ant-design-vue/dist/antd.css';
|
|
|
|
|
import Antd from 'ant-design-vue';
|
|
|
|
|
import './assets/style/style.less'
|
|
|
|
|
import VueLazyload from "vue-lazyload";
|
2023-10-30 17:26:36 +08:00
|
|
|
import i18n from './lang/index'
|
2024-01-10 14:09:44 +08:00
|
|
|
import GO from './tool/GO'
|
2023-07-26 15:54:34 +08:00
|
|
|
import "../node_modules/@flaticon/flaticon-uicons/css/all/all.css"
|
2024-01-15 13:20:53 +08:00
|
|
|
import Fingerprint2 from 'fingerprintjs2';//获取浏览器唯一标识
|
2023-01-06 16:00:15 +08:00
|
|
|
flexible()
|
2024-01-10 14:09:44 +08:00
|
|
|
import { useI18n } from 'vue-i18n';
|
2023-07-26 15:54:34 +08:00
|
|
|
// console.log(process.env)
|
2024-01-15 13:20:53 +08:00
|
|
|
Fingerprint2.get(function(components) {
|
|
|
|
|
const values = components.map(function(component,index) {
|
|
|
|
|
if (index === 0) { //把微信浏览器里UA的wifi或4G等网络替换成空,不然切换网络会ID不一样
|
|
|
|
|
return component.value.replace(/\bNetType\/\w+\b/, '')
|
|
|
|
|
}
|
|
|
|
|
return component.value
|
|
|
|
|
})
|
|
|
|
|
// 生成最终id murmur
|
|
|
|
|
const murmur = Fingerprint2.x64hash128(values.join(''), 31);
|
|
|
|
|
console.log('浏览器指纹码:'+murmur )
|
|
|
|
|
})
|
2023-01-06 16:00:15 +08:00
|
|
|
let loadingParam = {
|
|
|
|
|
loading: require('./assets/images/homePage/loading.gif'),
|
|
|
|
|
attempt: 1
|
2024-01-15 13:20:53 +08:00
|
|
|
}
|
2023-10-30 17:26:36 +08:00
|
|
|
createApp(App).use(store).use(router).use(Antd).use(VueLazyload,loadingParam).use(i18n).mount('#app')
|