Skip to content

Commit

Permalink
Merge pull request #9804 from stubenhuang/pref_9769
Browse files Browse the repository at this point in the history
pref: 优化rbac权限二进制部署脚本 #9769
  • Loading branch information
stubenhuang authored Dec 12, 2023
2 parents 4e9d37c + 4af273c commit 8343a50
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/frontend/common-lib/docs.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// const commonPrefix = `${DOCS_URL_PREFIX}/docs/markdown/持续集成平台/产品白皮书`
const commonPrefix = `${DOCS_URL_PREFIX}/bk--docs--center/markdown/Devops/UserGuide`
const commonPrefix = `${DOCS_URL_PREFIX}/markdown/Devops/UserGuide`
export const BkciDocs = {
BKCI_DOC: `${commonPrefix}/intro/README.md`, // 首页跳转文档
GATE_DOC: `${commonPrefix}/Services/Quailty-gate/quailty-gate.md`, // 质量红线文档
Expand Down
8 changes: 6 additions & 2 deletions src/frontend/locale/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,16 @@ export default (r, initSetLocale = false) => {

async function syncLocaleBackend (localeLang) {
try {
console.log('sync backendLocalEnum', backendLocalEnum[localeLang], localeLang)
const bkLocalEnum = {
'zh-CN': 'zh-cn', // 简体中文
'en-US': 'en' // 英文
}
console.log('sync backendLocalEnum', backendLocalEnum[localeLang], localeLang, bkLocalEnum[localeLang])
await Promise.all([
axios.put('/ms/project/api/user/locales/update', {
language: backendLocalEnum[localeLang]
}),
jsonpLocale(backendLocalEnum[localeLang])
jsonpLocale(bkLocalEnum[localeLang])
])
} catch (error) {
console.error('sync locale to backend error', error)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@
"group":{
"gateway":"http://bk-ci.service.consul",
"resource": "group",
"path":"/ms/quliaty/api/open/quality/callback/group",
"path":"/ms/quality/api/open/quality/callback/group",
"system":"ci",
"related_resource":["project"],
"related_flag": true
},
"rule":{
"gateway":"http://bk-ci.service.consul",
"resource": "rule",
"path":"/ms/quliaty/api/open/quality/callback/rule",
"path":"/ms/quality/api/open/quality/callback/rule",
"system":"ci",
"related_resource":["project"],
"related_flag": true
Expand Down

0 comments on commit 8343a50

Please sign in to comment.