| | |
| | | import Vue from 'vue'; |
| | | import App from './App.vue'; |
| | | |
| | | Vue.config.productionTip = false; |
| | | import ElementUI from 'element-ui'; |
| | | import ElementUI, {Notification} from 'element-ui'; |
| | | import 'element-ui/lib/theme-chalk/index.css'; |
| | | import router from './router/index.js'; |
| | | import axios from 'axios'; |
| | | import VueCookies from 'vue-cookies'; |
| | | import echarts from 'echarts'; |
| | | import VCharts from 'v-charts'; |
| | | |
| | | import VueClipboard from 'vue-clipboard2'; |
| | | import {Notification} from 'element-ui'; |
| | | import Fingerprint2 from 'fingerprintjs2'; |
| | | import VueClipboards from 'vue-clipboards'; |
| | | import Contextmenu from "vue-contextmenujs" |
| | | import userService from "./components/service/UserService" |
| | | |
| | | Vue.config.productionTip = false; |
| | | |
| | | |
| | | // 生成唯一ID |
| | |
| | | //console.log(values) //使用的浏览器信息npm |
| | | // 生成最终id |
| | | let port = window.location.port; |
| | | console.log(port); |
| | | const fingerPrint = Fingerprint2.x64hash128(values.join(port), 31) |
| | | Vue.prototype.$browserId = fingerPrint; |
| | | console.log("唯一标识码:" + fingerPrint); |
| | | console.log("浏览器 ID: " + fingerPrint); |
| | | }); |
| | | |
| | | Vue.use(VueClipboard); |
| | |
| | | ); |
| | | |
| | | Vue.prototype.$axios = axios; |
| | | Vue.prototype.$cookies.config(60*30); |
| | | Vue.prototype.$cookies.config(60 * 30); |
| | | |
| | | new Vue({ |
| | | router: router, |