From cb9eeec0baa75abb9c5e961aeb8e0c519a951f64 Mon Sep 17 00:00:00 2001
From: dcc <dcc@163.com>
Date: Tue, 16 Jul 2024 10:18:32 +0800
Subject: [PATCH] 123

---
 src/main.js |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/src/main.js b/src/main.js
index 191f9eb..3eb2305 100644
--- a/src/main.js
+++ b/src/main.js
@@ -19,7 +19,7 @@
   Tab,
   Tabs,
   Popup,
-  DatetimePicker
+  DatetimePicker 
 } from "vant";
 import "vant/lib/index.css";
 import moment from "moment";
@@ -33,6 +33,8 @@
 import "lib-flexible";
 // import md5 from 'js-md5'
 import * as filters from "@/utils/utils";
+import * as filter from "@/utils/filter";
+import * as allocation from "@/utils/allocation";
 import animated from "animate.css"; // npm install animate.css --save安装,在引入
 
 import "../static/css/public2.css";
@@ -70,6 +72,12 @@
 Object.keys(filters).forEach(key => {
   Vue.filter(key, filters[key]);
 });
+Object.keys(filter).forEach(key => {
+  Vue.filter(key, filter[key]);
+});
+Object.keys(allocation).forEach(key => {
+  Vue.prototype[key] = allocation[key];
+});
 Vue.prototype.$state = state;
 Vue.prototype.$setgoindex = function() {
   if (window.history.length <= 1) {

--
Gitblit v1.9.3