Commit 0150927a authored by “yiyousong”'s avatar “yiyousong”

perf: 优化接口获取

parent 19b10670
......@@ -196,6 +196,10 @@ export default {
let deviceInfo = objc.deviceInfo; //设备信息
let serverUrl = serviceInfo.serverUrl; //系统地址
let siteId = deviceInfo.siteId; //站点id
if (serverUrl.charAt(serverUrl.length - 1) !== "/") {
// 如果不是斜杠,就在末尾添加斜杠
serverUrl += "/";
}
// 保存地址
local.setLocal("serverUrl", serverUrl);
local.setLocal("siteId", siteId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment