mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-15 14:24:39 +00:00
fix: 修改在更新页面下切换组织,点击浏览器后退操作接口500问题
This commit is contained in:
committed by
Jiangjie.Bai
parent
5e8c1b4881
commit
40fd62cd2b
@@ -160,6 +160,8 @@ export function hasUUID(s) {
|
||||
}
|
||||
|
||||
export function replaceUUID(s, n) {
|
||||
const index = s.search(uuidPattern)
|
||||
if (index > 0) return s.substr(0, index)
|
||||
return s.replace(uuidPattern, n)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user