JM-admin/src/utils/btnAuth.js
2023-01-10 11:52:47 +08:00

7 lines
173 B
JavaScript

import { useRoute } from 'vue-router'
import { reactive } from 'vue'
export const useBtnAuth = () => {
const route = useRoute()
return route.meta.btns || reactive({})
}