1234567891011121314151617181920212223242526272829303132333435363738394041 |
- import config from "./config.js"
- import {
- decimalNum,
- setStorageSync,
- getStorageSync,
- removeStorageSync,
- setColor,
- getData_,
- readArticleInfo,
- numIntercepting,
- getChange
- } 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.prototype.$removeStorageSync = removeStorageSync;
- Vue.prototype.$getData_ = getData_;
- Vue.prototype.$readArticleInfo = readArticleInfo; // 阅读文章详情
- Vue.prototype.$numIntercepting = numIntercepting; // 数字小数剪切
- Vue.prototype.$getChange = getChange; // 数字小数剪切
- Vue.prototype.$setColor = setColor;
-
- Vue.prototype.$eventBus = new Vue()
- // Vue.component('share', share)
- // Vue.component('reverseBack', reverseBack)
- }
- }
|