initialize.js 699 B

12345678910111213141516171819202122
  1. import config from "./config.js"
  2. import { decimalNum , setStorageSync , getStorageSync } from "./common.js"
  3. // import share from "@/components/headModules/share.vue"
  4. // import reverseBack from "@/components/headModules/reverse-back.vue"
  5. export default {
  6. install(Vue) {
  7. // 挂载全局对象
  8. Vue.prototype.$config = config; // 全局配置
  9. Vue.prototype.$stocksColorObj = config.stocksColorObj; // 股票颜色
  10. Vue.prototype.$decimalNum = decimalNum; // 计算精度
  11. Vue.prototype.$setStorageSync = setStorageSync; // 计算精度
  12. Vue.prototype.$getStorageSync = getStorageSync; // 计算精度
  13. // Vue.component('share', share)
  14. // Vue.component('reverseBack', reverseBack)
  15. }
  16. }