You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
730 B
35 lines
730 B
import config from "./config";
|
|
import {client} from "./js/client";
|
|
|
|
wx.cloud.init({
|
|
traceUser: true,
|
|
env: "educoder"
|
|
});
|
|
|
|
App({
|
|
globalData: {
|
|
versionCode: config.versionCode,
|
|
debug: config.debug
|
|
},
|
|
client: client,
|
|
api(name, config){return client.api(name,config)},
|
|
callApi(options){return client.callApi(options)},
|
|
user(){ return client.user},
|
|
syncUser(options){return client.syncUser(options)},
|
|
onLaunch: function () {
|
|
|
|
},
|
|
showError(e){
|
|
wx.showToast({
|
|
title: e.message,
|
|
icon:"none"
|
|
})
|
|
},
|
|
shareApp({imageUrl,path,title}){
|
|
return {
|
|
title: title||"EduCoder教学",
|
|
imageUrl:imageUrl||"",
|
|
path
|
|
}
|
|
}
|
|
}); |