Compare commits

..

1 Commits
v3 ... ccrc_v3

Author SHA1 Message Date
ibuler
79617116c2 perf: ccrc 2025-07-24 16:41:16 +08:00
3 changed files with 6 additions and 26 deletions

View File

@@ -76,22 +76,16 @@ export default {
items() {
return [
{
label: this.$t('common.Product'),
value: 'JumpServer ' + this.versionType
label: '产品',
value: 'JumpServer 运维安全审计系统'
},
{
label: this.$t('common.Version'),
value: 'version-dev'
},
{
label: this.$t('common.PermissionCompany'),
value: this.corporation,
has: this.hasXPack
label: '版本',
value: 'v3'
},
{
label: 'Copyright',
value: this.copyright,
has: !this.hasXPack
value: ''
}
]
},

View File

@@ -90,20 +90,10 @@ function ifBadRequest({ response, error }) {
}
}
export function logout() {
window.location.href = `${process.env.VUE_APP_LOGOUT_PATH}?next=${location.pathname}`
}
export function flashErrorMsg({ response, error }) {
if (!response.config.disableFlashErrorMsg) {
const responseErrorMsg = getErrorResponseMsg(error)
const msg = responseErrorMsg || error.message
if (response.status === 403 && msg === 'CSRF Failed: CSRF token missing.') {
setTimeout(() => {
logout()
}, 1000)
}
message({
message: msg,
type: 'error',

View File

@@ -20,8 +20,7 @@ export const platformFieldsMeta = (vm) => {
'change_secret_enabled', 'change_secret_method', 'change_secret_params',
'push_account_enabled', 'push_account_method', 'push_account_params',
'verify_account_enabled', 'verify_account_method', 'verify_account_params',
'gather_accounts_enabled', 'gather_accounts_method', 'gather_accounts_params',
'remove_account_enabled', 'remove_account_method', 'remove_account_params'
'gather_accounts_enabled', 'gather_accounts_method', 'gather_accounts_params'
],
fieldsMeta: {
ansible_config: {
@@ -29,15 +28,12 @@ export const platformFieldsMeta = (vm) => {
hidden: (formValue) => !formValue['ansible_enabled']
},
gather_facts_enabled: {},
remove_account_enabled: {},
ping_method: {},
ping_params: {
label: ''
},
gather_facts_method: {},
push_account_method: {},
remove_account_method: {},
remove_account_params: {},
push_account_params: {
label: ''
},