zhou zhou
4 天以前 aaf8a50511d77dbc209ca93bbba308c21179a8bc
rsf-design/src/store/modules/menu.js
@@ -1,6 +1,5 @@
import { defineStore } from 'pinia'
import { ref } from 'vue'
import { getFirstMenuPath } from '@/utils'
import { HOME_PAGE_PATH } from '@/router'
const useMenuStore = defineStore('menuStore', () => {
  const homePath = ref(HOME_PAGE_PATH)
@@ -9,7 +8,7 @@
  const removeRouteFns = ref([])
  const setMenuList = (list) => {
    menuList.value = list
    setHomePath(HOME_PAGE_PATH || getFirstMenuPath(list))
    setHomePath(HOME_PAGE_PATH)
  }
  const getHomePath = () => homePath.value
  const setHomePath = (path) => {