Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
颜雨
infinite-manager-ui
Commits
1a395f94
Unverified
Commit
1a395f94
authored
4 years ago
by
KubeSphere CI Bot
Committed by
GitHub
4 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #1208 from leoendless/hotfix/docsLink
fix: Fix docs link
parents
14afe91d
c54ef2c7
master
dev
v3.2.0
v3.2.0-rc.1
v3.2.0-alpha.1
v3.2.0-alpha.0
v3.1.1
v3.1.1-rc.1
v3.1.1-rc.0
v3.1.0
v3.0.0
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/utils/index.js
+2
-6
src/utils/index.js
with
2 additions
and
6 deletions
+2
-6
src/utils/index.js
+
2
−
6
View file @
1a395f94
...
...
@@ -31,9 +31,7 @@ import {
import
generate
from
'
nanoid/generate
'
import
moment
from
'
moment-mini
'
import
cookie
from
'
utils/cookie
'
import
{
PATTERN_LABEL
,
LANG_MAP
,
MODULE_KIND_MAP
}
from
'
./constants
'
import
{
PATTERN_LABEL
,
MODULE_KIND_MAP
}
from
'
./constants
'
/**
* format size, output the value with unit
...
...
@@ -394,8 +392,6 @@ export const getWebSocketProtocol = protocol => {
}
export
const
getDocsUrl
=
module
=>
{
const
lang
=
LANG_MAP
[
cookie
(
'
lang
'
)
||
getBrowserLang
()]
const
{
url
:
prefix
}
=
globals
.
config
.
documents
const
docUrl
=
get
(
globals
.
config
,
`resourceDocs[
${
module
}
]`
,
''
)
...
...
@@ -403,7 +399,7 @@ export const getDocsUrl = module => {
return
''
}
return
`
${
prefix
}
/
${
lang
}
${
docUrl
}
`
return
`
${
prefix
}${
docUrl
}
`
}
export
const
hasChinese
=
str
=>
/.*
[\u
4E00-
\u
9FA5
]
+.*/
.
test
(
str
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets