eslint
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import store from '@/store'
|
||||
import store from '@/store';
|
||||
import router from '@/router';
|
||||
|
||||
export default {
|
||||
@@ -15,16 +15,16 @@ export default {
|
||||
});
|
||||
}
|
||||
return store.dispatch('tagsView/delCachedView', obj).then(() => {
|
||||
const { path, query } = obj
|
||||
const { path, query } = obj;
|
||||
router.replace({
|
||||
path: '/redirect' + path,
|
||||
query: query
|
||||
})
|
||||
})
|
||||
});
|
||||
});
|
||||
},
|
||||
// 关闭当前tab页签,打开新页签
|
||||
closeOpenPage(obj) {
|
||||
store.dispatch("tagsView/delView", router.currentRoute);
|
||||
store.dispatch('tagsView/delView', router.currentRoute);
|
||||
if (obj !== undefined) {
|
||||
return router.push(obj);
|
||||
}
|
||||
@@ -56,7 +56,12 @@ export default {
|
||||
},
|
||||
// 添加tab页签
|
||||
openPage(title, url, params) {
|
||||
var obj = { path: url, meta: { title: title } }
|
||||
var obj = {
|
||||
path: url,
|
||||
meta: {
|
||||
title: title
|
||||
}
|
||||
};
|
||||
store.dispatch('tagsView/addView', obj);
|
||||
return router.push({ path: url, query: params });
|
||||
},
|
||||
@@ -64,4 +69,4 @@ export default {
|
||||
updatePage(obj) {
|
||||
return store.dispatch('tagsView/updateVisitedView', obj);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user