mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-19 17:54:37 +00:00
perf: 优化配色 (#1871)
* perf: 优化配色 * perf: 修改 interface Co-authored-by: ibuler <ibuler@qq.com>
This commit is contained in:
@@ -2,7 +2,7 @@ import request from '@/utils/request'
|
||||
|
||||
export function updateInterface(formData) {
|
||||
return request({
|
||||
url: '/api/v1/xpack/interface/setting',
|
||||
url: '/api/v1/xpack/interface/setting/',
|
||||
method: 'put',
|
||||
headers: {
|
||||
'Content-Type': 'multipart/form-data'
|
||||
@@ -12,15 +12,15 @@ export function updateInterface(formData) {
|
||||
}
|
||||
export function getInterfaceInfo() {
|
||||
return request({
|
||||
url: '/api/v1/xpack/interface/setting',
|
||||
url: '/api/v1/xpack/interface/setting/',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function restoreInterface() {
|
||||
return request({
|
||||
url: '/api/v1/xpack/interface/restore',
|
||||
method: 'get'
|
||||
url: '/api/v1/xpack/interface/setting/restore/',
|
||||
method: 'put'
|
||||
})
|
||||
}
|
||||
|
||||
|
@@ -82,7 +82,7 @@ export function getPublicSettings(isOpen) {
|
||||
}
|
||||
export function getLogo() {
|
||||
return request({
|
||||
url: '/api/v1/xpack/interface/setting',
|
||||
url: '/api/v1/xpack/interface/setting/',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
@@ -2,7 +2,7 @@
|
||||
<el-link
|
||||
class="detail"
|
||||
:disabled="disabled"
|
||||
:type="col.type"
|
||||
:type="col.type || 'success'"
|
||||
@click="goDetail"
|
||||
>
|
||||
{{ iTitle }}
|
||||
|
@@ -1,5 +1,14 @@
|
||||
<template>
|
||||
<Page>
|
||||
<div v-if="isDev" style="margin-bottom: 20px">
|
||||
<el-button
|
||||
v-for="tp of ['primary', 'success', 'info', 'warning', 'danger']"
|
||||
:key="tp"
|
||||
:type="tp"
|
||||
>
|
||||
{{ tp.toUpperCase() }}
|
||||
</el-button>
|
||||
</div>
|
||||
<IBox v-if="!loading">
|
||||
<GenericCreateUpdateForm
|
||||
:fields="fields"
|
||||
@@ -37,6 +46,7 @@ export default {
|
||||
interfaceInfo: {},
|
||||
hasSaveContinue: false,
|
||||
successUrl: { name: 'Settings' },
|
||||
isDev: process.env.NODE_ENV === 'development',
|
||||
fields: [
|
||||
[this.$t('common.Basic'), ['login_title', 'theme']],
|
||||
['Logo', ['logo_index', 'logo_logout', 'favicon']],
|
||||
@@ -112,7 +122,7 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
url: '/api/v1/xpack/interface/setting',
|
||||
url: '/api/v1/xpack/interface/setting/',
|
||||
submitMethod() {
|
||||
return 'put'
|
||||
},
|
||||
|
Reference in New Issue
Block a user