内网部署

This commit is contained in:
2024-01-26 12:56:13 +08:00
parent 7dc111e89d
commit c2e9f24a0d
28 changed files with 243 additions and 68 deletions

View File

@@ -280,8 +280,8 @@
// updateChartHistoryFromServer
},
onShow() {
const hd_gps_location = localStorage.getItem("hd_gps_location")
if (hd_gps_location != null) {
const client = localStorage.getItem("client")
if (client == "app") {
this.isMobile = true
}
// TODO PC开发

View File

@@ -65,6 +65,12 @@
// // 监听接收聊天信息
uni.$on('onP2PMessage', this.onMessage)
//
if (options.client) {
uni.setStorageSync("client", options.client)
}
if (options.imUserSign) {
uni.showLoading({
title: "数据加载中...",