123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- import config from "./config.js"
- import {
- decimalNum,
- setStorageSync,
- getStorageSync,
- removeStorageSync,
- setColor,
- getData_,
- readArticleInfo,
- numIntercepting,
- getChange,
- showAccount
- } from "./common.js"
- import path from "./path.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.$showAccount = showAccount; // 账户名称脱敏
- Vue.prototype.$setColor = setColor;
- Vue.prototype.$path = path;
-
- Vue.prototype.$eventBus = new Vue()
- // Vue.component('share', share)
- // Vue.component('reverseBack', reverseBack)
- }
- }
|