fix:增加顶部页面页签,登出和关闭页面清空本地存储及store存储,默认显示学习路径图

This commit is contained in:
wyx
2023-01-12 17:30:12 +08:00
parent 33f6c61e00
commit 3d36807577
3 changed files with 44 additions and 7 deletions

View File

@@ -51,12 +51,12 @@ export default {
const store = useStore();
const $router = useRouter();
const state = reactive({
//openList: store.state.openpages,
openList: store.state.openpages,
});
const closePage = (value) => {
console.log("点击关闭页面", value, state.openList);
state.openList.map((item, key) => {
if (item.href === value.href) {
if (state.openList.length === 1) {
@@ -92,7 +92,7 @@ export default {
<style lang="scss">
.openPages {
width: 100%;
// height: 50px;
height: 50px;
display: flex;
background-color: rgba(255, 255, 255, 1);
box-shadow: 0px 8px 8px 0px rgba(118, 136, 166, 0.1);