1234567891011121314151617181920212223242526272829 |
- import config from "./config.js"
- import { decimalNum , setStorageSync , getStorageSync , removeStorageSync, setColor , getData_ , readArticleInfo , numIntercepting } from "./common.js"
-
- // import share from "@/components/headModules/share.vue"
- // import reverseBack from "@/components/headModules/reverse-back.vue"
- export default {
- install(Vue) {setColor
- // 挂载全局对象
- 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.$setColor = setColor;
-
- // Vue.component('share', share)
- // Vue.component('reverseBack', reverseBack)
- }
- }
|