2 Star 0 Fork 0

戒子/jz-mall-app

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.js 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
戒子 提交于 2021-08-14 00:26 . 修改分类显示方式
import Vue from 'vue'
import App from './App'
import store from '@/common/store'
import cuCustom from '@/static/colorui/components/cu-custom.vue'
import router from '@/common/router'
import tools from '@/common/utils/tools'
import '@/common/utils/sdk/sdk-h5.js'
import i18n from './lang/index.js'
import {
API_URL,
IMG_URL
} from './env.js'
//引入全局uView
import uView from 'uview-ui'
Vue.use(uView)
import {
RouterMount
} from 'uni-simple-router'
Vue.prototype.$store = store;
Vue.prototype.$api = api;
Vue.prototype.$tools = tools;
Vue.prototype.$API_URL = API_URL;
Vue.prototype.$IMG_URL = IMG_URL;
Vue.prototype._i18n = i18n;
Vue.prototype.getImgSrc = function(src) {
return IMG_URL + src;
}
Vue.component('cu-custom', cuCustom);
Vue.config.productionTip = false;
App.mpType = 'app';
// #ifdef H5
import wxsdk from '@/common/wechat/sdk'
Vue.prototype.$wxsdk = wxsdk;
RouterMount(app, '#app');
// #endif
import api from '@/common/request/index'
const app = new Vue({
i18n,
...App,
store
})
// #ifndef H5
app.$mount();
// #endif
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/jiezzz/jz-mall-app.git
git@gitee.com:jiezzz/jz-mall-app.git
jiezzz
jz-mall-app
jz-mall-app
master

搜索帮助