shuishen
2022-01-12 4e4a8690dc1754cfc7c6368730829c814e093a81
src/store/modules/viewer.js
@@ -2,12 +2,16 @@
    state: {
        viewer: null,
        visitedViews: [],
        cachedViews: []
        cachedViews: [],
        twoOrThree: '2.5维'
    },
    mutations: {
        SET_VIEWER (state, viewer) {
            state.viewer = viewer
        },
        SET_TWOORTHREE (state, twoOrThree) {
            state.twoOrThree = twoOrThree
        },
        DEL_VISITED_VIEWS: (state, view) => {
            for (const [i, v] of state.visitedViews.entries()) {
                if (v.path === view.path) {