Skip to content

Commit

Permalink
fix: Fix error in applications template page (#5873) (#4188)
Browse files Browse the repository at this point in the history
Signed-off-by: Harris <ic0xgkk@gmail.com>
  • Loading branch information
ic0xgkk committed Sep 4, 2023
1 parent 68ac5b2 commit 3324c1c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/stores/openpitrix/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ export default class Base {
}

if (app_id) {
const suffix = this.resourceName === 'apps' ? '' : this.resourceName
return `${prefix}/apps/${app_id}/${name || suffix}`
const suffix1 = this.resourceName === 'apps' ? '' : this.resourceName
const suffix2 = `${name || suffix1}` === '' ? '' : `/${name || suffix1}`
return `${prefix}/apps/${app_id}${suffix2}`
}

return `${prefix}/${name || this.resourceName}`
Expand Down

0 comments on commit 3324c1c

Please sign in to comment.