5 Star 46 Fork 33

Silently9527 / mall-coupons

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.js 753 Bytes
一键复制 编辑 原始数据 按行查看 历史
Wu Tian Qiang 提交于 2021-01-28 22:16 . Initial commit
import Vue from 'vue'
import store from './store'
import App from './App.vue'
import backend from './api/backend'
import cache from './utils/cache'
import mcUtils from './utils/mcUtils'
import TitleNav from './colorui/components/cu-custom.vue'
Vue.component('title-nav',TitleNav)
const message = (title, duration=1500, mask=false, icon='none')=>{
//统一提示方便全局修改
if(Boolean(title) === false){
return;
}
uni.showToast({
title,
duration,
mask,
icon
});
}
Vue.config.productionTip = false
Vue.prototype.$store = store;
Vue.prototype.$cache = cache;
Vue.prototype.$utils = mcUtils;
Vue.prototype.$message = message;
Vue.prototype.$api = { backend };
App.mpType = 'app'
const app = new Vue({
...App
})
app.$mount()
1
https://gitee.com/silently9527/mall-coupons.git
git@gitee.com:silently9527/mall-coupons.git
silently9527
mall-coupons
mall-coupons
master

搜索帮助