| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- import Vue from "vue";
- import App from "./App";
- import constants from "@/constant/index";
- Vue.prototype.$constant = constants;
- import "@/filters/index";
- import util from "./utils/util";
- Vue.prototype.$util = util;
- import globalMixins from "./mixins/globalMixins";
- Vue.mixin(globalMixins);
- import store from "./store";
- Vue.prototype.$store = store;
- // 阻止启动生产消息,常用作指令
- Vue.config.productionTip = false;
- // 封装得全局消息提示
- Vue.prototype.$msg = title => uni.showToast({title,icon: "none"});
- // 生产环境中控制台不打印普通信息,以免造成内存泄漏
- if (process.env.NODE_ENV == "production") {
- if (console) {
- console.log = () => {};
- }
- }
- import tTable from "@/components/plugin/t-table/t-table.vue";
- import tTh from "@/components/plugin/t-table/t-th.vue";
- import tTr from "@/components/plugin/t-table/t-tr.vue";
- import tTd from "@/components/plugin/t-table/t-td.vue";
- Vue.component("t-table", tTable);
- Vue.component("t-tr", tTr);
- Vue.component("t-th", tTh);
- Vue.component("t-td", tTd);
- App.mpType = "app";
- const app = new Vue({
- store,
- ...App
- });
- app.$mount();
|