mirror of
https://github.com/flipped-aurora/gin-vue-admin.git
synced 2026-10-10 19:28:00 +00:00
修复自定义指令修改为vue3模式
This commit is contained in:
@@ -3,7 +3,7 @@ import { store } from '@/store'
|
||||
export const auth = (app) => {
|
||||
app.directive('auth', {
|
||||
// 当被绑定的元素插入到 DOM 中时……
|
||||
bind: function(el, binding) {
|
||||
mounted: function(el, binding) {
|
||||
const userInfo = store.getters['user/userInfo']
|
||||
let type = ''
|
||||
switch (Object.prototype.toString.call(binding.value)) {
|
||||
|
||||
Reference in New Issue
Block a user