2 Star 9 Fork 11

azeal/uniapp微信小程序UDP开发WIFI设备AP配网(uniapp开发环境)

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
main.js 1021 Bytes
一键复制 编辑 原始数据 按行查看 历史
泽朋 提交于 2024-02-19 11:26 +08:00 . first commit
import Vue from 'vue'
import App from './App'
import http from './common/vmeitime-http/interface'
import cuCustom from '@/components/colorui/components/cu-custom.vue'
import uView from "uview-ui";
Vue.use(uView);
Vue.component('cu-custom',cuCustom)
Vue.prototype.$http = http
Vue.prototype.$downloadTask=null
Vue.config.productionTip = false
Vue.prototype.App = new Vue({
baseUrl: 'http://o.d.gdatacloud.com/scene',
userInfo: null,
globalData: {
header: {
Cookie: '',
'content-type': 'application/json'
},
promise: null
},
setGlobalUserInfo: function(user) {
uni.setStorageSync("userInfo", user)
},
getGlobalUserInfo: function() {
return uni.getStorageSync("userInfo")
},
setGlobalProjectInfo: function(user) {
uni.setStorageSync("ProjectInfo", user)
},
getGlobalProjectInfo: function() {
return uni.getStorageSync("ProjectInfo")
}
}),
// 锁定屏幕方向
// plus.screen.lockOrientation('portrait-primary'); //锁定
App.mpType = 'app'
const app = new Vue({
...App
})
app.$mount()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/azeal/wifi-config-dev-board-user.git
git@gitee.com:azeal/wifi-config-dev-board-user.git
azeal
wifi-config-dev-board-user
uniapp微信小程序UDP开发WIFI设备AP配网(uniapp开发环境)
master

搜索帮助