JM-admin/src/utils/btnAuth.js

7 lines
173 B
JavaScript
Raw Normal View History

2023-01-10 11:52:47 +08:00
import { useRoute } from 'vue-router'
import { reactive } from 'vue'
export const useBtnAuth = () => {
const route = useRoute()
return route.meta.btns || reactive({})
}