1 Star 0 Fork 47

lhy/仿青藤之恋社交交友软件 即时通讯 聊天 微信小程序 App H5三端通用

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
main.js 775 Bytes
一键复制 编辑 原始数据 按行查看 历史
lei.wang1 提交于 2024-01-31 10:07 +08:00 . 更新包
import App from './App'
// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
...App
})
app.$mount()
// #endif
// 引入全局uView
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
import {
myRequest,
BASE_URL,
getId,
AMAPKEY
} from 'util/api.js';
Vue.prototype.$myRequest = myRequest; // 接口请求
Vue.prototype.$BASE_URL = BASE_URL;//正式接口
Vue.prototype.$getId = getId; // 获取缓存用户信息
Vue.prototype.$AMAPKEY = AMAPKEY; // 定位key
// 导入并挂载全局的分享方法
import share from '@/common/share.js'
Vue.mixin(share)
// #ifdef VUE3
import {
createSSRApp
} from 'vue'
export function createApp() {
const app = createSSRApp(App)
return {
app
}
}
// #endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lhy-space/oujili.git
git@gitee.com:lhy-space/oujili.git
lhy-space
oujili
仿青藤之恋社交交友软件 即时通讯 聊天 微信小程序 App H5三端通用
master

搜索帮助