feat:动态权限

This commit is contained in:
JaguarJack
2022-12-10 18:29:42 +08:00
parent 8c537e6656
commit c4270a2fc8
46 changed files with 948 additions and 177 deletions

View File

@@ -1,12 +1,12 @@
import { ref } from 'vue'
import { t } from '/admin/support/helper'
const visible = ref<boolean>(false)
const id = ref(null)
const title = ref<string>('')
export function useOpen() {
const visible = ref<boolean>(false)
const id = ref(null)
const title = ref<string>('')
const open = (primary: any) => {
console.log(primary)
title.value = primary ? t('system.edit') : t('system.add')
id.value = primary
visible.value = true