From 416079e676643b4e808ce3cc403963d5aba3acf1 Mon Sep 17 00:00:00 2001
From: PC-20250623MANY\Administrator <344137771@qq.com>
Date: Mon, 25 Aug 2025 15:00:27 +0800
Subject: [PATCH] 1

---
 src/store/index.js |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/src/store/index.js b/src/store/index.js
index cc6c409..460ec97 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -1,6 +1,8 @@
 import { getUserInfodata } from "@/axios/api";
 import Vue from "vue";
 import Vuex from "vuex";
+import { Toast } from "vant";
+import i18n from "@/locales/index.js";
 // import getters from './getters'
 // import actions from './actions'
 // import mutations from './mutations'
@@ -38,7 +40,7 @@
   actions: {
     async setUseInfo({ commit }) {
       let data = await getUserInfodata();
-      if (data.status === 0) {
+      if (data.status == 0) {
         commit("SET_USE_INFO", data.data);
       } else {
         commit("elAlertShow", {
@@ -46,6 +48,10 @@
           elAlertText: data.msg
         });
       }
+    },
+    // 触发客服提示
+    CustomerService() {
+      Toast(i18n.t("kf1"));
     }
   },
   mutations: {

--
Gitblit v1.9.3