修复自定义指令修改为vue3模式

This commit is contained in:
蒋吉兆
2021-09-04 16:27:46 +08:00
parent e606cc9323
commit d0d13aa287
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -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)) {