pull/351/merge
汉广 2022-09-21 20:33:30 +08:00 committed by GitHub
commit dfa82062b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 9 deletions

View File

@ -9,7 +9,6 @@ import { usePermissStore } from './store/permiss'
import 'element-plus/dist/index.css'
import './assets/css/icon.css'
const app = createApp(App)
app.use(createPinia())
@ -26,9 +25,9 @@ const permiss = usePermissStore()
app.directive('permiss', {
mounted(el, binding) {
if (!permiss.key.includes(String(binding.value))) {
el['hidden'] = true;
}
el['hidden'] = true
}
},
})
app.mount('#app')