mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-20 08:43:55 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
79617116c2 |
@@ -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: ''
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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: ''
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user