当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 0

程少梅 / uniMusic
暂停

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.js 902 Bytes
AI 代码解读
一键复制 编辑 原始数据 按行查看 历史
程少梅 提交于 2021-03-11 23:53 . 聊天室
import Vue from 'vue'
import App from './App'
import GoEasy from './goeasy-1.2.1';
import uView from "uview-ui";
Vue.use(uView);
import store from "./store/index.js"
// 关闭生产提示
Vue.config.productionTip = false
App.mpType = 'app'
//挂载
const app = new Vue({
...App,
store
})
import Interceptor from "./api/Interceptor.js"
Vue.use(Interceptor, app)
// http接口API集中管理(龙玺文 11.23)
import request from './api/request.js'
Vue.use(request, app)
Vue.prototype.$goEasy = new GoEasy({
host: "hangzhou.goeasy.io",
appkey: "BC-87ce9e8c4e0e415295c9ea9c61747ee1", //替换为您的应用appkey
onConnected: function() {
console.log('socket-连接成功!')
},
onDisconnected: function() {
console.log('socket-连接断开!')
},
onConnectFailed: function(error) {
console.log('socket-连接失败或错误!')
}
});
app.$mount()
JavaScript
1
https://gitee.com/mrbelieve/uniMusic.git
git@gitee.com:mrbelieve/uniMusic.git
mrbelieve
uniMusic
uniMusic
master

搜索帮助