From a32c2be0fc5fc132ba2fdcd20de6139638b2d4a5 Mon Sep 17 00:00:00 2001
From: dcc <dcc@163.com>
Date: Thu, 01 Aug 2024 18:02:01 +0800
Subject: [PATCH] fdsafsad

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

diff --git a/src/main.js b/src/main.js
index b1b15de..c37b33b 100644
--- a/src/main.js
+++ b/src/main.js
@@ -33,6 +33,7 @@
 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安装,在引入
 
@@ -70,6 +71,9 @@
 Vue.config.productionTip = false;
 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];
@@ -134,7 +138,8 @@
   document.title = to.meta.title;
   console.log(store.state, "store.state", !!store.state.token);
   if (to.meta.requireAuth && !!!store.state.token) {
-    next("/login");
+    // next("/login");
+    //点击管理后台分享的二维码 进入注册页面 会识别未登录 导致进入登录页面
   }
   // if (!to.query.url && from.query.url) {
   //   to.query.url = from.query.url

--
Gitblit v1.9.3