wujingjing
2025-03-19 a193888380872e0c9d44a27b896d26a30f39df32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { defineStore } from 'pinia';
 
/**
 * 后端返回原始路由(未处理时)
 * @methods setCacheKeepAlive 设置接口原始路由数据
 */
export const useRequestOldRoutes = defineStore('requestOldRoutes', {
    state: (): RequestOldRoutesState => ({
        requestOldRoutes: [],
    }),
    actions: {
        async setRequestOldRoutes(routes: Array<string>) {
            this.requestOldRoutes = routes;
        },
    },
});