mirror of
https://github.com/veops/cmdb.git
synced 2025-08-08 21:47:06 +08:00
fix(cmdb-ui):set localstorage '' after unsubscribe ci (#296)
This commit is contained in:
@@ -95,6 +95,10 @@ export default {
|
||||
const unsubTree = subscribeTreeView(citypeId, '')
|
||||
Promise.all([unsubCIType, unsubTree]).then(() => {
|
||||
that.$message.success('取消订阅成功')
|
||||
const lastTypeId = window.localStorage.getItem('ops_ci_typeid') || undefined
|
||||
if (Number(citypeId) === Number(lastTypeId)) {
|
||||
localStorage.setItem('ops_ci_typeid', '')
|
||||
}
|
||||
// 删除路由
|
||||
const href = window.location.href
|
||||
const hrefSplit = href.split('/')
|
||||
|
Reference in New Issue
Block a user