Unverified Commit 1a395f94 authored by KubeSphere CI Bot's avatar KubeSphere CI Bot Committed by GitHub
Browse files

Merge pull request #1208 from leoendless/hotfix/docsLink

fix: Fix docs link
Showing with 2 additions and 6 deletions
+2 -6
......@@ -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 => /.*[\u4E00-\u9FA5]+.*/.test(str)
......
Supports Markdown
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