perf: update detail api url

This commit is contained in:
ibuler
2025-02-11 15:55:54 +08:00
parent f54e2c8ddc
commit 5abb8a867f
3 changed files with 4 additions and 3 deletions

View File

@@ -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) {

View File

@@ -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() {

View File

@@ -91,9 +91,9 @@ export const constantRoutes = [
*/
export const viewRoutes = [
consoleViewRoutes,
pamViewRoutes,
auditViewRoutes,
workbenchViewRoutes,
pamViewRoutes,
ticketsRoutes,
settingsRoutes,
profileRoutes