update 重构 彻底删除proxy用法 改为vue3官方推荐写法
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* v-copyText 复制文本内容
|
||||
* Copyright (c) 2022 ruoyi
|
||||
*/
|
||||
import { DirectiveBinding } from 'vue';
|
||||
import type { DirectiveBinding } from 'vue';
|
||||
|
||||
export default {
|
||||
beforeMount(el: any, { value, arg }: DirectiveBinding) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { App } from 'vue';
|
||||
import copyText from './common/copyText';
|
||||
import { hasPermi, hasRoles } from './permission';
|
||||
import { App } from 'vue';
|
||||
|
||||
export default (app: App) => {
|
||||
app.directive('copyText', copyText);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Directive, DirectiveBinding } from 'vue';
|
||||
import type { Directive, DirectiveBinding } from 'vue';
|
||||
import { useUserStore } from '@/store/modules/user';
|
||||
/**
|
||||
* 操作权限处理
|
||||
|
||||
Reference in New Issue
Block a user