1 Star 0 Fork 0

成都海之心科技有限公司/海之心空项目前端

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
main.js 1.08 KB
Copy Edit Raw Blame History
786537196@qq.com authored 2024-06-14 10:26 . 更新
import Vue from 'vue'
import App from './App'
import store from "./store/store.js"
import api from '@/common/vmeitime-http/'
import Login from "@/components/login.vue";
//#ifdef MP-WEIXIN
import fenxiang from './static/js/fenxiang.js'
Vue.mixin(fenxiang)
//#endif
Vue.component('Login',Login);
Vue.config.productionTip = false
//Vue.prototype.$puburl = 'https://zhkp.sso6.com/';
//Vue.prototype.$puburl = 'http://www.zp.com/';
Vue.prototype.$puburl = 'https://yy.hytmz.cn/';
Vue.prototype.$wxurl = false;
//Vue.prototype.$wxurl = 'http://wxpublic.ohyu.cn/'
Vue.prototype.$wxappid = 'wxd749b5d48bc7e52c';//微信公众号appid跳转使用
Vue.prototype.$api = api
Vue.prototype.$store = store;
//定义一下h5是网页1 还是 微信2
//#ifdef H5
let status = navigator.userAgent.toLowerCase();
if (status.match(/MicroMessenger/i) == "micromessenger") {
//console.log('微信浏览器');
Vue.prototype.$iswx = 2;//微信浏览器
}else{
//console.log('普通浏览器');
Vue.prototype.$iswx = 1;//网页
}
//#endif
App.mpType = 'app'
const app = new Vue({
store,
...App
})
app.$mount()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/chengduhaizhixin/emptyuniapp.git
git@gitee.com:chengduhaizhixin/emptyuniapp.git
chengduhaizhixin
emptyuniapp
海之心空项目前端
master

Search