12345678910111213141516171819202122 |
- import config from "./config.js"
- import { decimalNum , setStorageSync , getStorageSync } from "./common.js"
- // import share from "@/components/headModules/share.vue"
- // import reverseBack from "@/components/headModules/reverse-back.vue"
- export default {
- install(Vue) {
- // 挂载全局对象
- Vue.prototype.$config = config; // 全局配置
- Vue.prototype.$stocksColorObj = config.stocksColorObj; // 股票颜色
- Vue.prototype.$decimalNum = decimalNum; // 计算精度
- Vue.prototype.$setStorageSync = setStorageSync; // 计算精度
- Vue.prototype.$getStorageSync = getStorageSync; // 计算精度
- // Vue.component('share', share)
- // Vue.component('reverseBack', reverseBack)
- }
- }
|