src/main.js
@@ -49,6 +49,8 @@ import DictData from "@/components/DictData"; import { checkPermi } from "@/utils/permission"; // 权限判断函数 import { getToken } from "@/utils/auth"; // 时间转换 import Moment from "moment"; // 全局方法挂载 Vue.prototype.getDicts = getDicts; @@ -80,6 +82,8 @@ }); }, }); Vue.use(Moment); Vue.prototype.$moment = Moment; // 全局组件挂载 Vue.component("DictTag", DictTag);