Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sample-form-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
sample-form-platform
Commits
0150927a
Commit
0150927a
authored
Nov 28, 2023
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: 优化接口获取
parent
19b10670
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
sample-form-client-ui/admin/src/mixin/mq.js
sample-form-client-ui/admin/src/mixin/mq.js
+4
-0
No files found.
sample-form-client-ui/admin/src/mixin/mq.js
View file @
0150927a
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment