initialize.js 542 B

12345678910111213141516171819
  1. import config from "./config.js"
  2. import { decimalNum } 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) {decimalNum
  7. // 挂载全局对象
  8. Vue.prototype.$config = config; // 全局配置
  9. Vue.prototype.$stocksColorObj = config.stocksColorObj; // 股票颜色
  10. Vue.prototype.$decimalNum = decimalNum; // 股票颜色
  11. // Vue.component('share', share)
  12. // Vue.component('reverseBack', reverseBack)
  13. }
  14. }