mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-29 21:28:52 +00:00
perf: update detail api url
This commit is contained in:
@@ -203,7 +203,8 @@ export default {
|
||||
if (vm.validActions.detailApiUrl || vm.detailApiUrl) {
|
||||
return vm.validActions.detailApiUrl || vm.detailApiUrl
|
||||
}
|
||||
return vm.url ? `${vm.url}/${objectId}/` : getApiPath(vm, objectId)
|
||||
const url = _.trimEnd(vm.url, '/')
|
||||
return url ? `${url}/${objectId}/` : getApiPath(vm, objectId)
|
||||
},
|
||||
afterDelete() {
|
||||
if (this.drawer) {
|
||||
|
||||
@@ -100,7 +100,7 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
width() {
|
||||
return this.$store.state.app.device === 'mobile' ? '70%' : '380px'
|
||||
return this.$store.state.app.device === 'mobile' ? '70%' : '450px'
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
||||
@@ -91,9 +91,9 @@ export const constantRoutes = [
|
||||
*/
|
||||
export const viewRoutes = [
|
||||
consoleViewRoutes,
|
||||
pamViewRoutes,
|
||||
auditViewRoutes,
|
||||
workbenchViewRoutes,
|
||||
pamViewRoutes,
|
||||
ticketsRoutes,
|
||||
settingsRoutes,
|
||||
profileRoutes
|
||||
|
||||
Reference in New Issue
Block a user