initialize.js 744 B

1234567891011121314151617181920212223
  1. import config from "./config.js"
  2. import { decimalNum , setStorageSync , getStorageSync , setColor } 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) {setColor
  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.prototype.$setColor = setColor; // 计算精度
  14. // Vue.component('share', share)
  15. // Vue.component('reverseBack', reverseBack)
  16. }
  17. }