1 Star 0 Fork 0

王春正/uniapp-vue2-shop-template

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.js 728 Bytes
一键复制 编辑 原始数据 按行查看 历史
王春正 提交于 2023-09-08 17:46 . 提交代码
import Vue from "vue";
import App from "./App";
import uView from "uview-ui";
import store from "./store";
import config from '@/config/config';
// 引入Vuex
Vue.prototype.$store = store;
Vue.use(uView);
Vue.config.productionTip = false;
/**
* 注意!
* 此处将常用的颜色嵌入到原型链上面
* 颜色使用驼峰命名对应 uni.scss中全局颜色变量名
* 如需更换主题请修改此处以及uni.scss中的全局颜色
*/
// 主题色
Vue.prototype.$mainColor = config.mainColor;
// 高亮主题色
Vue.prototype.$lightColor = config.lightColor;
// 辅助高亮颜色
Vue.prototype.$aiderLightColor = config.aiderLightColor;
App.mpType = "app";
const app = new Vue({
...App,
});
app.$mount();
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/chun-zhengwang/uniapp-shop.git
git@gitee.com:chun-zhengwang/uniapp-shop.git
chun-zhengwang
uniapp-shop
uniapp-vue2-shop-template
master

搜索帮助