// 导入Vue
import Vue from "vue";
// 导入 Store
import store from "../store/store.js";
// 只需要保证执行即可
Vue.directive("power", {
inserted: function(el, binding
vue中自定义指令
最新推荐文章于 2024-03-14 17:15:47 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
// 导入Vue
import Vue from "vue";
// 导入 Store
import store from "../store/store.js";
// 只需要保证执行即可
Vue.directive("power", {
inserted: function(el, binding